@cntrl-site/components 1.0.116-alpha.0 → 1.0.117

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 (73) hide show
  1. package/dist/{Burger-DyORh_vF.mjs → Burger-BkVgNMGU.mjs} +1 -1
  2. package/dist/{Burger-B4kXX9aY.js → Burger-C3yVbQcq.js} +1 -1
  3. package/dist/Chronicles-BNvvaFYY.mjs +744 -0
  4. package/dist/Chronicles-Dj1gvNjE.js +196 -0
  5. package/dist/ChroniclesComponent-CoOgQZx2.js +1 -0
  6. package/dist/{ChroniclesComponent-jh4v7wp6.mjs → ChroniclesComponent-Szt0H-op.mjs} +542 -491
  7. package/dist/Components/Chronicles/Chronicles.d.ts +7 -1
  8. package/dist/Components/Chronicles/ChroniclesComponent.d.ts +26 -2
  9. package/dist/Components/LightboxJournal/LightboxJournal.d.ts +1 -0
  10. package/dist/Components/LightboxStrip/LightboxStrip.d.ts +1 -0
  11. package/dist/Components/helpers/SvgImage/loadSvgMaskUrl.d.ts +0 -7
  12. package/dist/{ControlSlider-DB4nbVLT.js → ControlSlider-C8ckUIDm.js} +1 -1
  13. package/dist/{ControlSlider-3w-bHQEg.mjs → ControlSlider-DqKfaKMG.mjs} +1 -1
  14. package/dist/{FAQ-GmiwRdFq.mjs → FAQ-CJHCMSBa.mjs} +1 -1
  15. package/dist/{FAQ-7HEkaoU6.js → FAQ-DLh63Utr.js} +1 -1
  16. package/dist/{Grid-BzarI5Mc.js → Grid-C4hO8KCr.js} +14 -9
  17. package/dist/{Grid-Z2JZyUdC.mjs → Grid-Dud7PLS9.mjs} +201 -196
  18. package/dist/{Hive-34KvKNsa.js → Hive-CzabuuCc.js} +1 -1
  19. package/dist/{Hive-7xHXyMM1.mjs → Hive-DyxYd5eg.mjs} +1 -1
  20. package/dist/{HiveLightboxTitles-BCoL46-V.mjs → HiveLightboxTitles-DhEeFKWs.mjs} +1 -1
  21. package/dist/{HiveLightboxTitles-DEeyQGcf.js → HiveLightboxTitles-DlyptAaK.js} +1 -1
  22. package/dist/{Lightbox-DzPqgKP4.mjs → Lightbox-BY99NS14.mjs} +1 -1
  23. package/dist/{Lightbox-Cb7lyaNt.js → Lightbox-DZckgBzK.js} +1 -1
  24. package/dist/{LightboxJournal-C_q7_s-B.mjs → LightboxJournal-BDUs6T0B.mjs} +466 -434
  25. package/dist/LightboxJournal-Bf_rZzmz.js +555 -0
  26. package/dist/{LightboxStrip-BrNj7ipX.mjs → LightboxStrip-Cuhb2fIR.mjs} +459 -427
  27. package/dist/LightboxStrip-RA4ABUC-.js +418 -0
  28. package/dist/{Mercury-BmhtFYOw.js → Mercury-B-s2Kvuq.js} +1 -1
  29. package/dist/{Mercury-Q788wrYQ.mjs → Mercury-CCW0Es-s.mjs} +1 -1
  30. package/dist/{OnelinerForm-D8WIB9Qy.mjs → OnelinerForm-BEu7_sho.mjs} +1 -1
  31. package/dist/{OnelinerForm-CUmY-bXL.js → OnelinerForm-C2Y_XMCY.js} +1 -1
  32. package/dist/{SimpleButton-DTpzfmb6.mjs → SimpleButton-C-o2W9bS.mjs} +1 -1
  33. package/dist/{SimpleButton-DtaCYa3y.js → SimpleButton-nGEcO2gB.js} +1 -1
  34. package/dist/{Slider20-q0iGgnE3.js → Slider20-BOmjDRf2.js} +1 -1
  35. package/dist/{Slider20-CKngROrc.mjs → Slider20-DUi6qwnd.mjs} +1 -1
  36. package/dist/SvgImage-B5mR9y6q.mjs +51 -0
  37. package/dist/SvgImage-DFlmxAoL.js +1 -0
  38. package/dist/{TestimonialSingle-CpEUendN.js → TestimonialSingle-BORQom3u.js} +1 -1
  39. package/dist/{TestimonialSingle-Bax71Hyo.mjs → TestimonialSingle-DrnyReim.mjs} +1 -1
  40. package/dist/{Waterfall-znaoynn5.mjs → Waterfall-3kKioKh2.mjs} +1 -1
  41. package/dist/{Waterfall-B9YWMhrg.js → Waterfall-DII4-WV5.js} +1 -1
  42. package/dist/{components-C9Fu28pp.mjs → components-DSHc15vW.mjs} +29 -653
  43. package/dist/components-iORMB3kt.js +1 -0
  44. package/dist/elements.js +1 -1
  45. package/dist/elements.mjs +23 -24
  46. package/dist/elements.node.js +1 -1
  47. package/dist/elements.node.mjs +1 -1
  48. package/dist/index.d.ts +2 -4
  49. package/dist/index.js +1 -1
  50. package/dist/index.mjs +38 -61
  51. package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
  52. package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
  53. package/dist/sources.js +143 -30
  54. package/dist/sources.mjs +150 -37
  55. package/dist/types/Component.d.ts +0 -7
  56. package/dist/types/SchemaV1.d.ts +3 -3
  57. package/package.json +1 -1
  58. package/dist/Chronicles-Cy2h3jlZ.mjs +0 -724
  59. package/dist/Chronicles-D0ojQzOP.js +0 -196
  60. package/dist/ChroniclesComponent-DYPJBI3d.js +0 -1
  61. package/dist/Components/PopupMenu/PopupMenu.d.ts +0 -73
  62. package/dist/Components/PopupMenu/PopupMenuComponent.d.ts +0 -594
  63. package/dist/Components/PopupMenu/popupMenuLayout.d.ts +0 -203
  64. package/dist/Components/PopupMenu/popupMenuSnap.d.ts +0 -61
  65. package/dist/LightboxJournal-BFF5aKRz.js +0 -523
  66. package/dist/LightboxStrip-CC2e0_9A.js +0 -386
  67. package/dist/PopupMenu-CYdDyzEt.mjs +0 -1372
  68. package/dist/PopupMenu-Di1fHgho.js +0 -409
  69. package/dist/SvgImage-CwRq9-ec.mjs +0 -56
  70. package/dist/SvgImage-_QN8ngad.js +0 -1
  71. package/dist/components-6QFLq5OI.js +0 -1
  72. package/dist/loadSvgMaskUrl-B6kHUyof.js +0 -1
  73. package/dist/loadSvgMaskUrl-DUhCVvpl.mjs +0 -39
package/dist/sources.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-DYPJBI3d.js"),e=`import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./ChroniclesComponent-CoOgQZx2.js"),e=`import { Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState, type CSSProperties, type MouseEvent, type PointerEvent, type ReactNode } from 'react';
2
2
  import { CommonComponentProps } from '../props';
3
3
  import { buildColorVars, scalingValue, useScopedStyles } from '../utils';
4
4
  import { useLightboxScrollLock } from '../utils/useLightboxScrollLock';
@@ -2694,8 +2694,21 @@ import { useLightboxScrollLock } from '../utils/useLightboxScrollLock';
2694
2694
  export const CHRONICLES_EXTRA_TITLE_KEYS = ['title2', 'title3', 'title4'] as const;
2695
2695
  export const CHRONICLES_COLUMN_WIDTH_KEYS = ['column1Width', 'column2Width', 'column3Width', 'column4Width'] as const;
2696
2696
  export const CHRONICLES_COLUMN_STYLE_PREFIXES = ['column1', 'column2', 'column3', 'column4', 'column5'] as const;
2697
+ export const CHRONICLES_COLUMN_KEYS = ['group', 'title', ...CHRONICLES_EXTRA_TITLE_KEYS] as const;
2698
+ export const CHRONICLES_COLUMN_LETTERS = ['A', 'B', 'C', 'D', 'E'] as const;
2697
2699
 
2698
- const TITLE_KEYS = ['title', ...CHRONICLES_EXTRA_TITLE_KEYS] as const;
2700
+ export type ChroniclesColumnKey = typeof CHRONICLES_COLUMN_KEYS[number];
2701
+
2702
+ export const CHRONICLES_COLUMN_STYLE_PREFIX_BY_KEY = Object.fromEntries(
2703
+ CHRONICLES_COLUMN_KEYS.map((key, index) => [key, CHRONICLES_COLUMN_STYLE_PREFIXES[index]]),
2704
+ ) as Record<ChroniclesColumnKey, typeof CHRONICLES_COLUMN_STYLE_PREFIXES[number]>;
2705
+
2706
+ export function getChroniclesColumnsOrder(order: unknown): ChroniclesColumnKey[] {
2707
+ const saved = Array.isArray(order)
2708
+ ? order.filter((key): key is ChroniclesColumnKey => (CHRONICLES_COLUMN_KEYS as readonly unknown[]).includes(key))
2709
+ : [];
2710
+ return [...new Set([...saved, ...CHRONICLES_COLUMN_KEYS])];
2711
+ }
2699
2712
 
2700
2713
  const PANEL_POSITION_OFFSETS = {
2701
2714
  center: { x: '50%', y: '50%' },
@@ -2739,7 +2752,7 @@ const COLOR_VAR_MAP = {
2739
2752
 
2740
2753
  const PADDING_CONTROLS = [
2741
2754
  { side: 'top', axis: 'y', variant: 'row-padding' },
2742
- { side: 'bottom', axis: 'y', variant: 'row-padding', reverse: true },
2755
+ { side: 'bottom', axis: 'y', variant: 'row-padding',},
2743
2756
  { side: 'left', axis: 'x', variant: 'column-padding', opposite: 'right' },
2744
2757
  { side: 'right', axis: 'x', variant: 'column-padding', opposite: 'left', reverse: true },
2745
2758
  ] as const;
@@ -2789,6 +2802,7 @@ type PrefixedTextStyle<Prefix extends string> = {
2789
2802
 
2790
2803
  type ColumnLayoutSettings = Partial<Record<ColumnWidthKey, number>> & {
2791
2804
  columns: number;
2805
+ columnsOrder?: string[];
2792
2806
  columnGap: number;
2793
2807
  panelWidth: number;
2794
2808
  panelPadding: Padding;
@@ -2830,14 +2844,33 @@ export function getChroniclesEqualColumnWidths(settings: ColumnLayoutSettings):
2830
2844
  return Object.fromEntries(CHRONICLES_COLUMN_WIDTH_KEYS.slice(0, settings.columns - 1).map((key) => [key, width]));
2831
2845
  }
2832
2846
 
2833
- export function applyChroniclesColumnCountChange(
2847
+ export function applyChroniclesLayoutSettingsChange(
2834
2848
  nextSettings: Record<string, any>,
2835
2849
  prevSettings: Record<string, any>,
2836
2850
  ): Record<string, any> {
2837
- if (typeof nextSettings.columns !== 'number' || nextSettings.columns === prevSettings.columns) {
2851
+ const merged = { ...prevSettings, ...nextSettings } as ColumnLayoutSettings;
2852
+ if (typeof nextSettings.columns === 'number' && nextSettings.columns !== prevSettings.columns) {
2853
+ return { ...nextSettings, ...getChroniclesEqualColumnWidths(merged) };
2854
+ }
2855
+
2856
+ const nextOrder = getChroniclesColumnsOrder(nextSettings.columnsOrder);
2857
+ const prevOrder = getChroniclesColumnsOrder(prevSettings.columnsOrder);
2858
+ if (typeof merged.columns !== 'number' || nextOrder.every((key, index) => key === prevOrder[index])) {
2838
2859
  return nextSettings;
2839
2860
  }
2840
- return { ...nextSettings, ...getChroniclesEqualColumnWidths({ ...prevSettings, ...nextSettings } as ColumnLayoutSettings) };
2861
+
2862
+ const prevWidths = resolveColumnWidths(merged);
2863
+ const prevShown = prevOrder.slice(0, merged.columns);
2864
+ const nextShown = nextOrder.slice(0, merged.columns);
2865
+ const freedWidths = prevShown.flatMap((key, slot) => (nextShown.includes(key) ? [] : [prevWidths[slot]]));
2866
+ const widths = nextShown.map((key) => {
2867
+ const prevSlot = prevShown.indexOf(key);
2868
+ return prevSlot >= 0 ? prevWidths[prevSlot] : freedWidths.shift() ?? 0;
2869
+ });
2870
+ return {
2871
+ ...nextSettings,
2872
+ ...Object.fromEntries(CHRONICLES_COLUMN_WIDTH_KEYS.slice(0, merged.columns - 1).map((key, slot) => [key, widths[slot]])),
2873
+ };
2841
2874
  }
2842
2875
 
2843
2876
  function resolveColumnWidths(settings: ColumnLayoutSettings): number[] {
@@ -2856,11 +2889,11 @@ function getGridTemplateColumns(widths: number[]): string {
2856
2889
  return widths.map((width) => \`minmax(0, \${total > 0 ? (width / total) * 100 : 1}fr)\`).join(' ');
2857
2890
  }
2858
2891
 
2859
- // A row with an empty group continues the group above it.
2860
- function groupRows(items: ChroniclesItem[]): ChroniclesGroup[] {
2892
+ // The first column groups the rows: a row with it empty continues the group above it.
2893
+ function groupRows(items: ChroniclesItem[], groupKey: ChroniclesColumnKey): ChroniclesGroup[] {
2861
2894
  const groups: ChroniclesGroup[] = [];
2862
2895
  items.forEach((item, index) => {
2863
- const label = item.group?.trim() ?? '';
2896
+ const label = item[groupKey]?.trim() ?? '';
2864
2897
  const current = groups[groups.length - 1];
2865
2898
  if (!current || (label !== '' && label !== current.label)) {
2866
2899
  groups.push({ label, rows: [{ item, index }] });
@@ -3292,11 +3325,13 @@ export function Chronicles({
3292
3325
  const scopedCss = useMemo(() => getCSS(P), [P]);
3293
3326
  const panelOffset = PANEL_POSITION_OFFSETS[panelPosition];
3294
3327
  const columnWidths = resolveColumnWidths(settings);
3295
- const titleKeys = TITLE_KEYS.slice(0, columns - 1);
3328
+ const shownKeys = getChroniclesColumnsOrder(settings.columnsOrder).slice(0, columns);
3296
3329
  const hasGroupColumn = columns > 1;
3330
+ const groupKey = shownKeys[0];
3331
+ const rowKeys = hasGroupColumn ? shownKeys.slice(1) : shownKeys;
3297
3332
  const groups = useMemo<ChroniclesGroup[]>(() => (
3298
- hasGroupColumn ? groupRows(items) : [{ label: '', rows: items.map((item, index) => ({ item, index })) }]
3299
- ), [items, hasGroupColumn]);
3333
+ hasGroupColumn ? groupRows(items, groupKey) : [{ label: '', rows: items.map((item, index) => ({ item, index })) }]
3334
+ ), [items, hasGroupColumn, groupKey]);
3300
3335
 
3301
3336
  const activeMedia = activeIndex === null ? [] : getRowMedia(items[activeIndex]);
3302
3337
  const shownAsset = activeMedia[activeMediaIndex];
@@ -3479,9 +3514,11 @@ export function Chronicles({
3479
3514
  };
3480
3515
 
3481
3516
  const triggerTypographyCss = omitTextColors(textStylesToCss(resolveTextStyle(settings, 'trigger'), isEditor));
3482
- const columnTypographyCss = CHRONICLES_COLUMN_STYLE_PREFIXES.slice(0, columns).map((prefix) => (
3483
- omitTextColors(textStylesToCss(resolveTextStyle(settings, prefix), isEditor))
3517
+ // one per shown column, in slot order
3518
+ const columnTypographyCss = shownKeys.map((key) => (
3519
+ omitTextColors(textStylesToCss(resolveTextStyle(settings, CHRONICLES_COLUMN_STYLE_PREFIX_BY_KEY[key]), isEditor))
3484
3520
  ));
3521
+ const rowTypographyCss = hasGroupColumn ? columnTypographyCss.slice(1) : columnTypographyCss;
3485
3522
  const labelLineHeight = columnTypographyCss[0].lineHeight;
3486
3523
  const titleLineHeight = columnTypographyCss[1]?.lineHeight;
3487
3524
  const groupLabelOffset = labelLineHeight !== undefined && titleLineHeight !== undefined
@@ -3560,7 +3597,6 @@ export function Chronicles({
3560
3597
  data-controls="groupGap"
3561
3598
  data-controls-paired=""
3562
3599
  data-controls-axis="y"
3563
- data-controls-reverse=""
3564
3600
  data-controls-min="0"
3565
3601
  className={\`\${P}-control-anchor\`}
3566
3602
  style={{ left: 0, width: '100%', height: scaled(Math.max(groupGap, MIN_HANDLE_SIZE)) }}
@@ -3600,11 +3636,8 @@ export function Chronicles({
3600
3636
  {...linkProps}
3601
3637
  {...hoverProps}
3602
3638
  >
3603
- {!hasGroupColumn && (
3604
- <div className={\`\${P}-title\`} style={columnTypographyCss[0]}>{item.group}</div>
3605
- )}
3606
- {titleKeys.map((key, titleIndex) => (
3607
- <div key={key} className={\`\${P}-title\`} style={columnTypographyCss[titleIndex + 1]}>{item[key]}</div>
3639
+ {rowKeys.map((key, cellIndex) => (
3640
+ <div key={key} className={\`\${P}-title\`} style={rowTypographyCss[cellIndex]}>{item[key]}</div>
3608
3641
  ))}
3609
3642
  </RowElement>
3610
3643
  );
@@ -5668,7 +5701,6 @@ function getGridTextLeadingVars(
5668
5701
  const HOVER_ANIM_MS = 400;
5669
5702
  const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
5670
5703
  const HOVER_ZOOM = 1.1;
5671
- const HOVER_ZOOM_INSET = \`\${(((1 - 1 / HOVER_ZOOM) / 2) * 100).toFixed(4)}%\`;
5672
5704
  const MEDIA_RADIUS_VAR = '--grid-media-radius';
5673
5705
 
5674
5706
  function getCSS(P: string): string {
@@ -5814,10 +5846,16 @@ function getCSS(P: string): string {
5814
5846
  .\${P}-show-text-hover .\${P}-item-inner-hidden:hover .\${P}-item-subtitle {
5815
5847
  opacity: 1;
5816
5848
  }
5849
+ @property --\${P}-hover-zoom {
5850
+ syntax: '<number>';
5851
+ inherits: false;
5852
+ initial-value: 1;
5853
+ }
5817
5854
  .\${P}-hover-zoom-in .\${P}-item-image,
5818
5855
  .\${P}-hover-zoom-in .\${P}-item-video {
5819
- clip-path: inset(0 round var(\${MEDIA_RADIUS_VAR}, 0px));
5820
- transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING}, clip-path \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5856
+ transform: scale(var(--\${P}-hover-zoom));
5857
+ clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)) round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / var(--\${P}-hover-zoom)));
5858
+ transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
5821
5859
  }
5822
5860
  .\${P}-hover-scale-down .\${P}-item-image,
5823
5861
  .\${P}-hover-scale-down .\${P}-item-video {
@@ -5828,8 +5866,7 @@ function getCSS(P: string): string {
5828
5866
  }
5829
5867
  @media (hover: hover) {
5830
5868
  .\${P}-hover-zoom-in .\${P}-item-image-wrapper:has(.\${P}-item-image:hover, .\${P}-item-video:hover) :is(.\${P}-item-image, .\${P}-item-video) {
5831
- transform: scale(\${HOVER_ZOOM});
5832
- clip-path: inset(\${HOVER_ZOOM_INSET} round calc(var(\${MEDIA_RADIUS_VAR}, 0px) / \${HOVER_ZOOM}));
5869
+ --\${P}-hover-zoom: \${HOVER_ZOOM};
5833
5870
  }
5834
5871
  .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-image,
5835
5872
  .\${P}-hover-scale-down .\${P}-item-image-wrapper:hover .\${P}-item-video {
@@ -10994,6 +11031,10 @@ import { getAspectRatio, isImageRatioCover, type ImageRatioFit } from '../utils/
10994
11031
  import { LightboxOverlay } from './LightboxOverlay';
10995
11032
  import { buildJournalSlides, findJournalUrlSlideNumber, getEntryImages, hasJournalUrlParam, removeJournalUrlParam, setJournalUrlParam, slideNumberToIndex } from './utils';
10996
11033
 
11034
+ const HOVER_ANIM_MS = 400;
11035
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
11036
+ const HOVER_ZOOM = 1.1;
11037
+
10997
11038
  function getCSS(P: string): string {
10998
11039
  return \`
10999
11040
  .\${P}-wrapper {
@@ -11040,6 +11081,38 @@ function getCSS(P: string): string {
11040
11081
  max-width: 100%;
11041
11082
  }
11042
11083
 
11084
+ @property --\${P}-hover-zoom {
11085
+ syntax: '<number>';
11086
+ inherits: false;
11087
+ initial-value: 1;
11088
+ }
11089
+
11090
+ .\${P}-hover-zoom-in .\${P}-cover-image {
11091
+ transform: scale(var(--\${P}-hover-zoom));
11092
+ clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
11093
+ transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11094
+ }
11095
+
11096
+ .\${P}-hover-scale-down .\${P}-cover-image {
11097
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11098
+ }
11099
+
11100
+ .\${P}-hover-greyscale .\${P}-cover-image {
11101
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11102
+ }
11103
+
11104
+ @media (hover: hover) {
11105
+ .\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
11106
+ --\${P}-hover-zoom: \${HOVER_ZOOM};
11107
+ }
11108
+ .\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
11109
+ transform: scale(0.9);
11110
+ }
11111
+ .\${P}-hover-greyscale .\${P}-cover:hover .\${P}-cover-image {
11112
+ filter: grayscale(1);
11113
+ }
11114
+ }
11115
+
11043
11116
  .\${P}-lightbox {
11044
11117
  position: fixed;
11045
11118
  inset: 0;
@@ -11545,7 +11618,8 @@ type LightboxJournalProps = {
11545
11618
  export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId, metadata }: LightboxJournalProps) => {
11546
11619
  const { prefix: P } = useScopedStyles();
11547
11620
  const itemId = metadata?.itemId ?? null;
11548
- const { cover, coverFit, type } = settings;
11621
+ const { cover, coverFit, type, hover = 'none' } = settings;
11622
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
11549
11623
  const wrapperRef = useRef<HTMLDivElement>(null);
11550
11624
  const [lightboxOpen, setLightboxOpen] = useState(false);
11551
11625
  const [lightboxInitialSlideIndex, setLightboxInitialSlideIndex] = useState(0);
@@ -11638,7 +11712,7 @@ export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPre
11638
11712
 
11639
11713
  return (
11640
11714
  <>
11641
- <div ref={wrapperRef} className={\`\${P}-wrapper\`}>
11715
+ <div ref={wrapperRef} className={\`\${P}-wrapper\${hoverEffectClass}\`}>
11642
11716
  <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
11643
11717
  {cover ? (
11644
11718
  <button
@@ -11692,6 +11766,7 @@ export const LightboxJournal = ({ settings, content, isEditor, isEditMode, isPre
11692
11766
  export type LightboxJournalSettings = {
11693
11767
  cover: string | null;
11694
11768
  coverFit: ImageRatioFit;
11769
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
11695
11770
  type: 'A' | 'B';
11696
11771
  maxWidth: number;
11697
11772
  maxHeight: number;
@@ -11775,6 +11850,10 @@ export type {
11775
11850
  StripTitleWidthKey,
11776
11851
  } from './utils';
11777
11852
 
11853
+ const HOVER_ANIM_MS = 400;
11854
+ const HOVER_EASING = 'cubic-bezier(0.25, 0.1, 0.25, 1)';
11855
+ const HOVER_ZOOM = 1.1;
11856
+
11778
11857
  function getCSS(P: string): string {
11779
11858
  return \`
11780
11859
  .\${P}-wrapper {
@@ -11821,6 +11900,38 @@ function getCSS(P: string): string {
11821
11900
  max-width: 100%;
11822
11901
  }
11823
11902
 
11903
+ @property --\${P}-hover-zoom {
11904
+ syntax: '<number>';
11905
+ inherits: false;
11906
+ initial-value: 1;
11907
+ }
11908
+
11909
+ .\${P}-hover-zoom-in .\${P}-cover-image {
11910
+ transform: scale(var(--\${P}-hover-zoom));
11911
+ clip-path: inset(calc(50% - 50% / var(--\${P}-hover-zoom)));
11912
+ transition: --\${P}-hover-zoom \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11913
+ }
11914
+
11915
+ .\${P}-hover-scale-down .\${P}-cover-image {
11916
+ transition: transform \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11917
+ }
11918
+
11919
+ .\${P}-hover-greyscale .\${P}-cover-image {
11920
+ transition: filter \${HOVER_ANIM_MS}ms \${HOVER_EASING};
11921
+ }
11922
+
11923
+ @media (hover: hover) {
11924
+ .\${P}-hover-zoom-in .\${P}-cover:hover .\${P}-cover-image {
11925
+ --\${P}-hover-zoom: \${HOVER_ZOOM};
11926
+ }
11927
+ .\${P}-hover-scale-down .\${P}-cover:hover .\${P}-cover-image {
11928
+ transform: scale(0.9);
11929
+ }
11930
+ .\${P}-hover-greyscale .\${P}-cover:hover .\${P}-cover-image {
11931
+ filter: grayscale(1);
11932
+ }
11933
+ }
11934
+
11824
11935
  .\${P}-lightbox {
11825
11936
  position: fixed;
11826
11937
  inset: 0;
@@ -12178,6 +12289,7 @@ export type LightboxStripItem = {
12178
12289
  export type LightboxStripSettings = {
12179
12290
  cover: string | null;
12180
12291
  coverFit: ImageRatioFit;
12292
+ hover?: 'none' | 'zoom-in' | 'greyscale' | 'scale-down';
12181
12293
  backgroundColor: string;
12182
12294
  thumbnailVisibility: 'on' | 'off';
12183
12295
  thumbnailSize: number;
@@ -12242,7 +12354,8 @@ type LightboxStripProps = {
12242
12354
 
12243
12355
  export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPreviewMode, portalId }: LightboxStripProps) => {
12244
12356
  const { prefix: P } = useScopedStyles();
12245
- const { cover, coverFit } = settings;
12357
+ const { cover, coverFit, hover = 'none' } = settings;
12358
+ const hoverEffectClass = hover !== 'none' && (!isEditor || isPreviewMode) ? \` \${P}-hover-\${hover}\` : '';
12246
12359
  const wrapperRef = useRef<HTMLDivElement>(null);
12247
12360
  const [lightboxOpen, setLightboxOpen] = useState(false);
12248
12361
  const items = content ?? [];
@@ -12260,7 +12373,7 @@ export const LightboxStrip = ({ settings, content, isEditor, isEditMode, isPrevi
12260
12373
 
12261
12374
  return (
12262
12375
  <>
12263
- <div ref={wrapperRef} className={\`\${P}-wrapper\`}>
12376
+ <div ref={wrapperRef} className={\`\${P}-wrapper\${hoverEffectClass}\`}>
12264
12377
  <style dangerouslySetInnerHTML={{ __html: getCSS(P) }} />
12265
12378
  {cover && (
12266
12379
  <div
@@ -25204,4 +25317,4 @@ export function Waterfall({
25204
25317
  </>
25205
25318
  );
25206
25319
  }
25207
- `,w={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=w;
25320
+ `,C={[n.BurgerComponent.id]:e,[n.ChroniclesComponent.id]:t,[n.ClickGallerieComponent.id]:i,[n.FAQComponent.id]:o,[n.FormComponent.id]:r,[n.GridComponent.id]:a,[n.HelixComponent.id]:s,[n.HiveComponent.id]:l,[n.LightboxJournalComponent.id]:c,[n.LightboxStripComponent.id]:d,[n.ListComponent.id]:u,[n.MarqueeComponent.id]:g,[n.MarqueeTextComponent.id]:m,[n.MercuryComponent.id]:p,[n.OnelinerFormComponent.id]:h,[n.PretextComponent.id]:f,[n.ScaleComponent.id]:v,[n.SimpleButtonComponent.id]:P,[n.Slider20Component.id]:x,[n.TestimonialGridComponent.id]:b,[n.TestimonialSingleComponent.id]:y,[n.WaterfallComponent.id]:S};exports.componentSources=C;