@wix/editor-react-components 1.2637.0 → 1.2639.0

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 (49) hide show
  1. package/dist/site/components/AccordionComponent/component.js +1 -1
  2. package/dist/site/components/AccordionComponent/manifest.js +1 -1
  3. package/dist/site/components/AudioPlayer/component.js +1 -1
  4. package/dist/site/components/AudioPlayer/manifest.js +1 -1
  5. package/dist/site/components/BoxContainer/component.js +1 -1
  6. package/dist/site/components/BoxContainer/manifest.js +1 -1
  7. package/dist/site/components/Breadcrumbs/component.js +1 -1
  8. package/dist/site/components/Breadcrumbs/manifest.js +1 -1
  9. package/dist/site/components/Checkbox/component.js +1 -1
  10. package/dist/site/components/Checkbox/manifest.js +1 -1
  11. package/dist/site/components/CheckboxGroup/component.js +1 -1
  12. package/dist/site/components/CheckboxGroup/manifest.js +1 -1
  13. package/dist/site/components/CollapsibleText/component.js +1 -1
  14. package/dist/site/components/CollapsibleText/manifest.js +1 -1
  15. package/dist/site/components/DatePicker/component.js +1 -1
  16. package/dist/site/components/DatePicker/manifest.js +1 -1
  17. package/dist/site/components/Dropdown/component.js +1 -1
  18. package/dist/site/components/Dropdown/manifest.js +1 -1
  19. package/dist/site/components/HTMLComponent/component.js +1 -1
  20. package/dist/site/components/HeadingTextBlock/component.js +3 -42
  21. package/dist/site/components/HeadingTextBlock/css.css +20 -21
  22. package/dist/site/components/HeadingTextBlock/manifest.js +1 -1
  23. package/dist/site/components/HipaaIcon/component.js +1 -1
  24. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  25. package/dist/site/components/ImageReveal/ImageReveal.d.ts +4 -0
  26. package/dist/site/components/ImageReveal/component.d.ts +2 -0
  27. package/dist/site/components/ImageReveal/component.js +317 -0
  28. package/dist/site/components/ImageReveal/constants.d.ts +49 -0
  29. package/dist/site/components/ImageReveal/css.css +364 -0
  30. package/dist/site/components/ImageReveal/index.d.ts +2 -0
  31. package/dist/site/components/ImageReveal/index.js +6 -0
  32. package/dist/site/components/ImageReveal/manifest.d.ts +5 -0
  33. package/dist/site/components/ImageReveal/manifest.js +330 -0
  34. package/dist/site/components/ImageReveal/types.d.ts +27 -0
  35. package/dist/site/components/chunks/constants32.js +49 -24
  36. package/dist/site/components/chunks/constants33.js +25 -56
  37. package/dist/site/components/chunks/constants34.js +59 -10
  38. package/dist/site/components/chunks/constants35.js +10 -206
  39. package/dist/site/components/chunks/constants36.js +182 -153
  40. package/dist/site/components/chunks/constants37.js +162 -49
  41. package/dist/site/components/chunks/constants38.js +51 -102
  42. package/dist/site/components/chunks/constants39.js +69 -39
  43. package/dist/site/components/chunks/constants40.js +72 -69
  44. package/dist/site/components/chunks/constants41.js +73 -77
  45. package/dist/site/components/chunks/constants42.js +75 -56
  46. package/dist/site/components/chunks/constants43.js +72 -0
  47. package/dist/site/components/chunks/index14.js +46 -0
  48. package/dist/site/components/extensions.js +35 -33
  49. package/package.json +2 -2
@@ -4,7 +4,7 @@ import React__default, { useRef, useEffect, useMemo, useState, useCallback } fro
4
4
  import "react-dom";
5
5
  import { c as clsx } from "../chunks/clsx.js";
6
6
  import AnimatedIconWithReducedMotion from "../AnimatedIcon/component.js";
7
- import { D as DesignStates, a as DEFAULT_PROPS } from "../chunks/constants42.js";
7
+ import { D as DesignStates, a as DEFAULT_PROPS } from "../chunks/constants43.js";
8
8
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
9
9
  import { a as requireEq, d as requireIsFunction, r as requireIsObject, e as requireIsLength, c as require_isIndex, b as requireIsArrayLike } from "../chunks/isArrayLike.js";
10
10
  import { c as require_root, r as require_Symbol, a as require_baseGetTag, b as requireIsObjectLike, d as require_freeGlobal } from "../chunks/isObjectLike.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, L as LAYOUT, c as ContainerType, a as ACTIONS, E as ELEMENTS, N as NativeStateType, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants42.js";
2
+ import { D as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants43.js";
3
3
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
4
4
  import { w as withSpec } from "../chunks/manifest.js";
5
5
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
@@ -6,7 +6,7 @@ import { useService } from "@wix/services-manager-react";
6
6
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
7
7
  import { d as directionStyles } from "../chunks/direction.module.js";
8
8
  import Image3 from "../Image3/component.js";
9
- import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants41.js";
9
+ import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants42.js";
10
10
  import { c as commonjsGlobal } from "../chunks/_commonjsHelpers.js";
11
11
  import { x as $48a7d519b337145d$export$4eaf04e54aa8eed6, v as $fe16bffc7a557bf0$export$7f54fc3180508a52, S as $cbf007e418543821$export$b0d6fa1ab32e3295, r as $d447af545b77c9f1$export$f21a1ffae260145a, g as $23f2114a1b82827e$export$e58f029f0fbfdb29, T as $cbf007e418543821$export$16a4697467175487, G as $0beb20c9744a2065$export$8467354a121f1b9f, J as $240e9101ba2842f5$export$7d15b64cf5a3a4c4, F as $8f5a2122b0992be3$export$8397ddfc504fdb9a, f as $bbaa08b3cd72f041$export$9d1611c77c2fe928, N as $1969ac565cfec8d0$export$de79e2c695e052f3, U as $8296dad1a4c5e0dc$export$8f71654801c2f7cd, d as $d1116acdf220c2da$export$4c014de7c8940b4c, e as $3274bf1495747a7b$export$5add1d006293d136, V as $240e9101ba2842f5$export$cb6e0bb50bc19463, c as $3e6197669829fe11$export$40bfa8c7b0832715, h as $01b77f81d0f07f68$export$75b6ee27786ba447, E as $e969f22b6713ca4a$export$ae780daf29e6d456, D as $0c4a58759813079a$export$4e328f61c538687f, b as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, $ as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4 } from "../chunks/Group.js";
12
12
  import { k as $2eb8e6d23f3d0cb0$export$43bb16f9c6d9e3f7, c as $64fa3d84918910a7$export$29f1550f4b0d4415, e as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, g as $64fa3d84918910a7$export$4d86445c2cf5e3, h as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, i as $64fa3d84918910a7$export$2881499e37b75b9a, d as $64fa3d84918910a7$export$fabf2dc03a41866e } from "../chunks/filterDOMProps.js";
@@ -1,6 +1,6 @@
1
1
  import { b as DISPLAY_GROUPS, N as NativeStateType, C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, I as INTERACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  import { c as manifestMouseHover, f as manifestMediaProgress, e as manifestPlayable } from "../chunks/manifestSdkMixins.js";
3
- import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants41.js";
3
+ import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants42.js";
4
4
  import manifest$1 from "../Image3/manifest.js";
5
5
  import { w as withSpec } from "../chunks/manifest.js";
6
6
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import { useService } from "@wix/services-manager-react";
4
4
  import { T as TranslationsDefinition } from "../chunks/index6.js";
5
- import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants34.js";
5
+ import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
6
6
  import { e as getTabIndexAttribute, f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
7
7
  const root = "root__eLvEL";
8
8
  const styles = {
@@ -1,5 +1,5 @@
1
1
  import { a as ACTIONS, I as INTERACTIONS, D as DATA, c as ContainerType, A as Archetype, L as LAYOUT } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DisplayNames } from "../chunks/constants34.js";
2
+ import { D as DisplayNames } from "../chunks/constants35.js";
3
3
  const manifest = {
4
4
  id: "1f0108be-06bb-4a81-9c55-a1cbd223926c",
5
5
  type: "wixEditorElements.BoxContainer",
@@ -6,7 +6,7 @@ import { $ as $cf2482eff2eeeec2$export$f12b703ca79dfbb1 } from "../chunks/useLoc
6
6
  import { createPortal } from "react-dom";
7
7
  import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
8
8
  import { d as directionStyles } from "../chunks/direction.module.js";
9
- import { s as semanticClassNames, D as DesignStates } from "../chunks/constants40.js";
9
+ import { s as semanticClassNames, D as DesignStates } from "../chunks/constants41.js";
10
10
  import { A as AnimatedIcon } from "../chunks/AnimatedIcon.js";
11
11
  import { useService } from "@wix/services-manager-react";
12
12
  import { d as defineService } from "../chunks/index8.js";
@@ -1,7 +1,7 @@
1
1
  import { L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, C as CSS_PROPERTIES, E as ELEMENTS, N as NativeStateType, D as DATA, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
3
3
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
4
- import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/constants40.js";
4
+ import { D as DesignStates, a as DisplayNames, h as homepageModeValues, d as defaultStateValues, b as separatorValues, c as componentMetadata, s as semanticClassNames } from "../chunks/constants41.js";
5
5
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
6
6
  const manifest = {
7
7
  id: componentMetadata.id,
@@ -9,7 +9,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
9
  import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
10
10
  import { d as directionStyles } from "../chunks/direction.module.js";
11
11
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
12
- import { d as defaultValues, V as VALUE_MISSING_MESSAGE, s as selectors, T as TestIds, a as semanticClassNames } from "../chunks/constants39.js";
12
+ import { d as defaultValues, V as VALUE_MISSING_MESSAGE, s as selectors, T as TestIds, a as semanticClassNames } from "../chunks/constants40.js";
13
13
  import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
14
14
  const root = "root__0DpH8";
15
15
  const field = "field__R0D8f";
@@ -1,5 +1,5 @@
1
1
  import { E as ELEMENTS, N as NativeStateType, C as CSS_PROPERTIES, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DesignStates, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants39.js";
2
+ import { D as DesignStates, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants40.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -9,7 +9,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
9
  import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
10
10
  import { d as directionStyles } from "../chunks/direction.module.js";
11
11
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
12
- import { d as defaultValues, a as defaultOptions, V as VALUE_MISSING_MESSAGE, s as selectors, T as TestIds, b as semanticClassNames } from "../chunks/constants38.js";
12
+ import { d as defaultValues, a as defaultOptions, V as VALUE_MISSING_MESSAGE, s as selectors, T as TestIds, b as semanticClassNames } from "../chunks/constants39.js";
13
13
  import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
14
14
  const root = "root__raraS";
15
15
  const fieldset = "fieldset__pDERL";
@@ -1,5 +1,5 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants38.js";
2
+ import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants39.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -9,7 +9,7 @@ import { e as getTabIndexAttribute } from "../chunks/a11y.js";
9
9
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
10
10
  import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
11
11
  import { d as directionStyles } from "../chunks/direction.module.js";
12
- import { L as LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE, F as FALLBACK_LINE_HEIGHT, m as manifestClasses, E as ExpandModeValues, T as TestIds, s as semanticClassNames } from "../chunks/constants37.js";
12
+ import { L as LINE_HEIGHT_ROUNDING_ERROR_TOLERANCE, F as FALLBACK_LINE_HEIGHT, m as manifestClasses, E as ExpandModeValues, T as TestIds, s as semanticClassNames } from "../chunks/constants38.js";
13
13
  import { B as Button } from "../chunks/Button.js";
14
14
  const root = "root__kOEn9";
15
15
  const text = "text__rjuUh";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, E as ELEMENTS, D as DATA, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants37.js";
2
+ import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants38.js";
3
3
  import { g as getSelector } from "../chunks/manifest.js";
4
4
  import { c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
5
5
  const manifest = {
@@ -15,7 +15,7 @@ import { T as TranslationsDefinition } from "../chunks/index6.js";
15
15
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
16
16
  import { d as directionStyles } from "../chunks/direction.module.js";
17
17
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
18
- import { E as EMPTY_VALUE, T as TestIds, D as DesignStates, s as selectors, A as ARIA_LABEL_NAMESPACE, d as defaultValues, S as SelectionModeValues, G as GranularityValues, V as VALUE_MISSING_MESSAGE, a as AriaLabels } from "../chunks/constants36.js";
18
+ import { E as EMPTY_VALUE, T as TestIds, D as DesignStates, s as selectors, A as ARIA_LABEL_NAMESPACE, d as defaultValues, S as SelectionModeValues, G as GranularityValues, V as VALUE_MISSING_MESSAGE, a as AriaLabels } from "../chunks/constants37.js";
19
19
  import { R as RequiredIndicator, u as useValidatedField } from "../chunks/RequiredIndicator.js";
20
20
  import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
21
21
  import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
@@ -1,5 +1,5 @@
1
1
  import { N as NativeStateType, b as DISPLAY_GROUPS, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DesignStates, P as PREVIEW_CALENDAR_OPEN, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants36.js";
2
+ import { D as DesignStates, P as PREVIEW_CALENDAR_OPEN, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants37.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -11,7 +11,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
11
11
  import { u as useValidatedField, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
12
12
  import { d as directionStyles } from "../chunks/direction.module.js";
13
13
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
14
- import { A as ALL_VALUE, s as selectors, a as semanticClassNames, T as TestIds, d as defaultValues, b as TriggerModeValues, c as ARIA_LABEL_NAMESPACE, e as AriaLabels, V as VALUE_MISSING_MESSAGE } from "../chunks/constants35.js";
14
+ import { A as ALL_VALUE, s as selectors, a as semanticClassNames, T as TestIds, d as defaultValues, b as TriggerModeValues, c as ARIA_LABEL_NAMESPACE, e as AriaLabels, V as VALUE_MISSING_MESSAGE } from "../chunks/constants36.js";
15
15
  import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
16
16
  import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
17
17
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, b as DISPLAY_GROUPS, D as DATA, N as NativeStateType, E as ELEMENTS, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { D as DesignStates, f as DisplayNames, d as defaultValues, F as FunctionalStateKeys, s as selectors } from "../chunks/constants35.js";
2
+ import { D as DesignStates, f as DisplayNames, d as defaultValues, F as FunctionalStateKeys, s as selectors } from "../chunks/constants36.js";
3
3
  import { w as withSpec, g as getSelector } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { m as manifestFocusable, b as manifestInputable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
@@ -9,7 +9,7 @@ import { useService } from "@wix/services-manager-react";
9
9
  import { d as defineStaticService } from "../chunks/staticService.js";
10
10
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
11
11
  import { T as TranslationsDefinition } from "../chunks/index6.js";
12
- import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants34.js";
12
+ import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants35.js";
13
13
  const isBrowser = () => typeof window !== "undefined";
14
14
  function useIFrame({
15
15
  reducer = () => ({}),
@@ -1,50 +1,11 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import "../chunks/index12.js";
4
- import * as React from "react";
4
+ import "react";
5
+ import { T as Typography } from "../chunks/index14.js";
5
6
  import { d as directionStyles } from "../chunks/direction.module.js";
6
7
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
7
- import { d as defaultValues, m as manifestClasses } from "../chunks/constants33.js";
8
- const Typography_module = {
9
- h1: "h1-go2_mI",
10
- h2: "h2-dAyvwd",
11
- h3: "h3-LClqyK",
12
- h4: "h4-pzBHGr",
13
- h5: "h5-HOx5Wp",
14
- h6: "h6-zCNm1M",
15
- p1: "p1-pY02jM",
16
- p2: "p2-TsZIq5",
17
- p3: "p3-N6QdAQ"
18
- };
19
- const variantToElementTagMap = {
20
- h1: "h1",
21
- h2: "h2",
22
- h3: "h3",
23
- h4: "h4",
24
- h5: "h5",
25
- h6: "h6",
26
- p1: "p",
27
- p2: "p",
28
- p3: "p"
29
- };
30
- const Typography = /* @__PURE__ */ React.forwardRef(({ variant = "p2", render: renderProp, className, ...props }, ref) => {
31
- const variantClass = Typography_module[variant];
32
- if (renderProp) {
33
- const { className: renderClassName, ...renderElementProps } = renderProp.props;
34
- return /* @__PURE__ */ React.cloneElement(renderProp, {
35
- ...renderElementProps,
36
- ...props,
37
- ref,
38
- className: clsx(variantClass, renderClassName, className)
39
- });
40
- }
41
- const Tag = variantToElementTagMap[variant];
42
- return /* @__PURE__ */ jsx(Tag, {
43
- ref,
44
- className: clsx(variantClass, className),
45
- ...props
46
- });
47
- });
8
+ import { d as defaultValues, m as manifestClasses } from "../chunks/constants34.js";
48
9
  const headingTextBlock = "headingTextBlock__UKpAZ";
49
10
  const heading = "heading__GFN0u";
50
11
  const title = "title__azLiO";
@@ -1,3 +1,23 @@
1
+ .headingTextBlock__UKpAZ {
2
+ display: var(--display);
3
+ --display: flex;
4
+ flex-direction: var(--parts-flex-direction, column);
5
+ row-gap: var(--parts-row-gap, 12px);
6
+ column-gap: var(--parts-column-gap, 12px);
7
+ margin: 0;
8
+ padding: 24px;
9
+ width: 100%;
10
+ height: 100%;
11
+ box-sizing: border-box;
12
+ overflow-wrap: break-word;
13
+ }
14
+
15
+ .heading__GFN0u,
16
+ .title__azLiO,
17
+ .subtitle__PpUYb,
18
+ .caption__2F5RC {
19
+ display: block;
20
+ }
1
21
  .h1-go2_mI {
2
22
  font: var(--wst-heading-1-font);
3
23
  color: var(--wst-heading-1-color);
@@ -42,27 +62,6 @@
42
62
  font: var(--wst-paragraph-3-font);
43
63
  color: var(--wst-paragraph-3-color);
44
64
  }
45
-
46
- .headingTextBlock__UKpAZ {
47
- display: var(--display);
48
- --display: flex;
49
- flex-direction: var(--parts-flex-direction, column);
50
- row-gap: var(--parts-row-gap, 12px);
51
- column-gap: var(--parts-column-gap, 12px);
52
- margin: 0;
53
- padding: 24px;
54
- width: 100%;
55
- height: 100%;
56
- box-sizing: border-box;
57
- overflow-wrap: break-word;
58
- }
59
-
60
- .heading__GFN0u,
61
- .title__azLiO,
62
- .subtitle__PpUYb,
63
- .caption__2F5RC {
64
- display: block;
65
- }
66
65
  .fallbackDirection__HeRgn:not([dir]) {
67
66
  direction: var(--wix-opt-in-direction);
68
67
  }
@@ -1,6 +1,6 @@
1
1
  import { C as CSS_PROPERTIES, L as LAYOUT, a as ACTIONS, b as DISPLAY_GROUPS, D as DATA, A as Archetype, E as ELEMENTS } from "../chunks/chunk-ZHYIPFVN.js";
2
2
  import { g as getSelector } from "../chunks/manifest.js";
3
- import { p as presets, D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants33.js";
3
+ import { p as presets, D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants34.js";
4
4
  const ORIENTATION_PANEL_ID = "2a2f4252-217b-413a-8717-a1d0e1cc2470";
5
5
  const TEXT_CSS_PROPERTIES = {
6
6
  display: {
@@ -3,7 +3,7 @@ import { c as clsx } from "../chunks/clsx.js";
3
3
  import { useService } from "@wix/services-manager-react";
4
4
  import { T as TranslationsDefinition } from "../chunks/index6.js";
5
5
  import { d as defineService } from "../chunks/index8.js";
6
- import { T as TranslationKeys, D as DefaultTranslations, a as TRANSLATIONS_NAMESPACE } from "../chunks/constants32.js";
6
+ import { T as TranslationKeys, D as DefaultTranslations, a as TRANSLATIONS_NAMESPACE } from "../chunks/constants33.js";
7
7
  const RendererConfigurationDefinition = defineService("@wix/viewer-service-renderer-configuration");
8
8
  const hipaaIcon = "hipaaIcon__VA3L3";
9
9
  const compliant = "compliant__1NZWT";
@@ -1,5 +1,5 @@
1
1
  import { D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-ZHYIPFVN.js";
2
- import { b as DisplayNames, H as HIPAA_SETTINGS_PANEL_ID } from "../chunks/constants32.js";
2
+ import { b as DisplayNames, H as HIPAA_SETTINGS_PANEL_ID } from "../chunks/constants33.js";
3
3
  const manifest = {
4
4
  id: "c82c4153-edcc-4b6f-8c99-8d021e3bf5ab",
5
5
  type: "wixEditorElements.HipaaIcon",
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ImageRevealProps } from './types';
3
+ declare const ImageReveal: FC<ImageRevealProps>;
4
+ export default ImageReveal;
@@ -0,0 +1,2 @@
1
+ import { default as ImageReveal } from './ImageReveal';
2
+ export default ImageReveal;
@@ -0,0 +1,317 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useRef, useState, useEffect } from "react";
3
+ import Image3 from "../Image3/component.js";
4
+ import { c as clsx } from "../chunks/clsx.js";
5
+ import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
6
+ import "../chunks/index12.js";
7
+ import { T as Typography } from "../chunks/index14.js";
8
+ import { d as directionStyles } from "../chunks/direction.module.js";
9
+ import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
10
+ import { D as DEFAULT_SLIDER_POSITION, A as ARIA_LABELS, m as manifestClasses, C as CHEVRON_PATH, d as defaultValues, S as SLIDER_STEP } from "../chunks/constants32.js";
11
+ const root = "root__hnYp0";
12
+ const imageContainer = "imageContainer__sTfbZ";
13
+ const before = "before__x99i-";
14
+ const after = "after__EMOb9";
15
+ const handle = "handle__I7Ck5";
16
+ const dragControl = "dragControl__gopA-";
17
+ const divider = "divider__6oJYS";
18
+ const buttonGroup = "buttonGroup__0RZrR";
19
+ const btn = "btn__uzPRE";
20
+ const icon = "icon__eetK8";
21
+ const iconFlipped = "iconFlipped__dXYVO";
22
+ const labelBefore = "labelBefore__oqyAj";
23
+ const labelAfter = "labelAfter__bwrPv";
24
+ const labelBeforeVertical = "labelBeforeVertical__y6xqy";
25
+ const labelAfterVertical = "labelAfterVertical__KD2TH";
26
+ const styles = {
27
+ root,
28
+ imageContainer,
29
+ before,
30
+ after,
31
+ handle,
32
+ dragControl,
33
+ divider,
34
+ buttonGroup,
35
+ btn,
36
+ icon,
37
+ iconFlipped,
38
+ labelBefore,
39
+ labelAfter,
40
+ labelBeforeVertical,
41
+ labelAfterVertical
42
+ };
43
+ const ImageReveal = (props) => {
44
+ var _a, _b, _c, _d, _e, _f, _g;
45
+ const {
46
+ id,
47
+ className,
48
+ direction,
49
+ a11y,
50
+ beforeImage,
51
+ afterImage,
52
+ beforeLabel,
53
+ afterLabel,
54
+ labelPosition,
55
+ buttonsDisabled = false,
56
+ elementProps,
57
+ wix
58
+ } = props;
59
+ const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
60
+ const imageContainerRef = useRef(null);
61
+ const isDragging = useRef(false);
62
+ const [sliderPosition, setSliderPosition] = useState(DEFAULT_SLIDER_POSITION);
63
+ const updatePosition = (clientX) => {
64
+ var _a2;
65
+ const rect = (_a2 = imageContainerRef.current) == null ? void 0 : _a2.getBoundingClientRect();
66
+ if (!rect || rect.width === 0) return;
67
+ const x = Math.max(0, Math.min(clientX - rect.left, rect.width));
68
+ setSliderPosition(x / rect.width * 100);
69
+ };
70
+ useEffect(() => {
71
+ const onMouseMove = (e) => {
72
+ if (isDragging.current) updatePosition(e.clientX);
73
+ };
74
+ const onMouseUp = () => {
75
+ isDragging.current = false;
76
+ };
77
+ const onTouchMove = (e) => {
78
+ if (isDragging.current && e.touches[0])
79
+ updatePosition(e.touches[0].clientX);
80
+ };
81
+ const onTouchEnd = () => {
82
+ isDragging.current = false;
83
+ };
84
+ document.addEventListener("mousemove", onMouseMove);
85
+ document.addEventListener("mouseup", onMouseUp);
86
+ document.addEventListener("touchmove", onTouchMove, { passive: true });
87
+ document.addEventListener("touchend", onTouchEnd);
88
+ document.addEventListener("touchcancel", onTouchEnd);
89
+ return () => {
90
+ document.removeEventListener("mousemove", onMouseMove);
91
+ document.removeEventListener("mouseup", onMouseUp);
92
+ document.removeEventListener("touchmove", onTouchMove);
93
+ document.removeEventListener("touchend", onTouchEnd);
94
+ document.removeEventListener("touchcancel", onTouchEnd);
95
+ };
96
+ }, []);
97
+ const handleDragStart = (e) => {
98
+ if (e.button !== 0) return;
99
+ e.preventDefault();
100
+ e.currentTarget.focus();
101
+ isDragging.current = true;
102
+ updatePosition(e.clientX);
103
+ };
104
+ const handleTouchStart = (e) => {
105
+ isDragging.current = true;
106
+ if (e.touches[0]) updatePosition(e.touches[0].clientX);
107
+ };
108
+ const handlePrev = (e) => {
109
+ e.stopPropagation();
110
+ setSliderPosition((position) => Math.max(0, position - SLIDER_STEP));
111
+ };
112
+ const handleNext = (e) => {
113
+ e.stopPropagation();
114
+ setSliderPosition((position) => Math.min(100, position + SLIDER_STEP));
115
+ };
116
+ const handleKeyDown = (event) => {
117
+ const changes = {
118
+ ArrowLeft: -1,
119
+ ArrowDown: -1,
120
+ ArrowRight: 1,
121
+ ArrowUp: 1,
122
+ PageDown: -SLIDER_STEP,
123
+ PageUp: SLIDER_STEP
124
+ };
125
+ if (event.key === "Home" || event.key === "End") {
126
+ event.preventDefault();
127
+ setSliderPosition(event.key === "Home" ? 0 : 100);
128
+ } else if (changes[event.key] !== void 0) {
129
+ event.preventDefault();
130
+ setSliderPosition(
131
+ (position) => Math.max(0, Math.min(100, position + changes[event.key]))
132
+ );
133
+ }
134
+ };
135
+ const resolvedLabelPosition = labelPosition ?? defaultValues.labelPosition;
136
+ return /* @__PURE__ */ jsx("div", { className: presetWrapperStyles.presetWrapper, ...presetsWrapperProps, children: /* @__PURE__ */ jsxs(
137
+ "div",
138
+ {
139
+ id,
140
+ dir: direction,
141
+ style: { "--slider-position": `${sliderPosition}%` },
142
+ className: clsx(
143
+ manifestClasses.root,
144
+ styles.root,
145
+ directionStyles.fallbackDirection,
146
+ className
147
+ ),
148
+ ...a11y && convertA11yKeysToHtmlFormat(a11y),
149
+ children: [
150
+ /* @__PURE__ */ jsxs("div", { ref: imageContainerRef, className: styles.imageContainer, children: [
151
+ beforeImage && /* @__PURE__ */ jsx(
152
+ Image3,
153
+ {
154
+ id: `${id}-before`,
155
+ className: styles.before,
156
+ image: beforeImage
157
+ }
158
+ ),
159
+ afterImage && /* @__PURE__ */ jsx(
160
+ Image3,
161
+ {
162
+ id: `${id}-after`,
163
+ className: styles.after,
164
+ image: afterImage
165
+ }
166
+ ),
167
+ /* @__PURE__ */ jsxs("div", { className: styles.handle, children: [
168
+ /* @__PURE__ */ jsx(
169
+ "div",
170
+ {
171
+ className: styles.dragControl,
172
+ onMouseDown: handleDragStart,
173
+ onTouchStart: handleTouchStart,
174
+ onKeyDown: handleKeyDown,
175
+ tabIndex: 0,
176
+ role: "separator",
177
+ "aria-label": ARIA_LABELS.handle,
178
+ "aria-orientation": "vertical",
179
+ "aria-valuemin": 0,
180
+ "aria-valuemax": 100,
181
+ "aria-valuenow": sliderPosition
182
+ }
183
+ ),
184
+ /* @__PURE__ */ jsx(
185
+ "div",
186
+ {
187
+ ...elementProps == null ? void 0 : elementProps.imageRevealDivider,
188
+ className: clsx(
189
+ manifestClasses.divider,
190
+ styles.divider,
191
+ (_a = elementProps == null ? void 0 : elementProps.imageRevealDivider) == null ? void 0 : _a.className
192
+ ),
193
+ "aria-hidden": "true"
194
+ }
195
+ ),
196
+ /* @__PURE__ */ jsxs("div", { className: styles.buttonGroup, children: [
197
+ /* @__PURE__ */ jsx(
198
+ "button",
199
+ {
200
+ type: "button",
201
+ ...elementProps == null ? void 0 : elementProps.imageRevealBtn,
202
+ onMouseDown: (e) => e.stopPropagation(),
203
+ disabled: buttonsDisabled || sliderPosition === 0,
204
+ onClick: handlePrev,
205
+ "aria-label": ARIA_LABELS.prevButton,
206
+ className: clsx(
207
+ manifestClasses.btn,
208
+ styles.btn,
209
+ (_b = elementProps == null ? void 0 : elementProps.imageRevealBtn) == null ? void 0 : _b.className
210
+ ),
211
+ children: /* @__PURE__ */ jsx(
212
+ "svg",
213
+ {
214
+ ...elementProps == null ? void 0 : elementProps.imageRevealArrowIcon,
215
+ className: clsx(
216
+ manifestClasses.arrowIcon,
217
+ styles.icon,
218
+ (_c = elementProps == null ? void 0 : elementProps.imageRevealArrowIcon) == null ? void 0 : _c.className
219
+ ),
220
+ viewBox: "0 0 24 24",
221
+ "aria-hidden": "true",
222
+ focusable: "false",
223
+ children: /* @__PURE__ */ jsx(
224
+ "path",
225
+ {
226
+ d: CHEVRON_PATH,
227
+ fill: "none",
228
+ stroke: "currentColor",
229
+ strokeWidth: "2",
230
+ strokeLinecap: "round",
231
+ strokeLinejoin: "round"
232
+ }
233
+ )
234
+ }
235
+ )
236
+ }
237
+ ),
238
+ /* @__PURE__ */ jsx(
239
+ "button",
240
+ {
241
+ type: "button",
242
+ ...elementProps == null ? void 0 : elementProps.imageRevealBtn,
243
+ onMouseDown: (e) => e.stopPropagation(),
244
+ disabled: buttonsDisabled || sliderPosition === 100,
245
+ onClick: handleNext,
246
+ "aria-label": ARIA_LABELS.nextButton,
247
+ className: clsx(
248
+ manifestClasses.btn,
249
+ styles.btn,
250
+ (_d = elementProps == null ? void 0 : elementProps.imageRevealBtn) == null ? void 0 : _d.className
251
+ ),
252
+ children: /* @__PURE__ */ jsx(
253
+ "svg",
254
+ {
255
+ ...elementProps == null ? void 0 : elementProps.imageRevealArrowIcon,
256
+ className: clsx(
257
+ manifestClasses.arrowIcon,
258
+ styles.icon,
259
+ styles.iconFlipped,
260
+ (_e = elementProps == null ? void 0 : elementProps.imageRevealArrowIcon) == null ? void 0 : _e.className
261
+ ),
262
+ viewBox: "0 0 24 24",
263
+ "aria-hidden": "true",
264
+ focusable: "false",
265
+ children: /* @__PURE__ */ jsx(
266
+ "path",
267
+ {
268
+ d: CHEVRON_PATH,
269
+ fill: "none",
270
+ stroke: "currentColor",
271
+ strokeWidth: "2",
272
+ strokeLinecap: "round",
273
+ strokeLinejoin: "round"
274
+ }
275
+ )
276
+ }
277
+ )
278
+ }
279
+ )
280
+ ] })
281
+ ] })
282
+ ] }),
283
+ /* @__PURE__ */ jsx(
284
+ Typography,
285
+ {
286
+ ...elementProps == null ? void 0 : elementProps.imageRevealLabelBefore,
287
+ variant: "p2",
288
+ className: clsx(
289
+ manifestClasses.labelBefore,
290
+ styles.labelBefore,
291
+ resolvedLabelPosition === "vertical" && styles.labelBeforeVertical,
292
+ (_f = elementProps == null ? void 0 : elementProps.imageRevealLabelBefore) == null ? void 0 : _f.className
293
+ ),
294
+ children: beforeLabel ?? defaultValues.beforeLabel
295
+ }
296
+ ),
297
+ /* @__PURE__ */ jsx(
298
+ Typography,
299
+ {
300
+ ...elementProps == null ? void 0 : elementProps.imageRevealLabelAfter,
301
+ variant: "p2",
302
+ className: clsx(
303
+ manifestClasses.labelAfter,
304
+ styles.labelAfter,
305
+ resolvedLabelPosition === "vertical" && styles.labelAfterVertical,
306
+ (_g = elementProps == null ? void 0 : elementProps.imageRevealLabelAfter) == null ? void 0 : _g.className
307
+ ),
308
+ children: afterLabel ?? defaultValues.afterLabel
309
+ }
310
+ )
311
+ ]
312
+ }
313
+ ) });
314
+ };
315
+ export {
316
+ ImageReveal as default
317
+ };