@wix/editor-react-components 1.2348.0 → 1.2350.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 (77) 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 +3 -4
  10. package/dist/site/components/Checkbox/manifest.js +1 -1
  11. package/dist/site/components/CheckboxGroup/component.js +3 -4
  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 +2 -3
  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/HipaaIcon/component.js +1 -1
  21. package/dist/site/components/HipaaIcon/manifest.js +1 -1
  22. package/dist/site/components/LinkBar/component.js +1 -1
  23. package/dist/site/components/LinkBar/manifest.js +1 -1
  24. package/dist/site/components/Logo/component.js +1 -1
  25. package/dist/site/components/Logo/manifest.js +1 -1
  26. package/dist/site/components/Logo/sdk.js +1 -1
  27. package/dist/site/components/Lottie/component.js +1 -1
  28. package/dist/site/components/Lottie/manifest.js +1 -1
  29. package/dist/site/components/Menu/component.js +1 -1
  30. package/dist/site/components/Menu/manifest.js +1 -1
  31. package/dist/site/components/MultiStateBox/component.js +1 -1
  32. package/dist/site/components/MultiStateBox/manifest.js +1 -1
  33. package/dist/site/components/ProgressBar/component.js +1 -1
  34. package/dist/site/components/ProgressBar/manifest.js +1 -1
  35. package/dist/site/components/ProgressBar/sdk.js +1 -1
  36. package/dist/site/components/RadioButtons/RadioButtons.d.ts +3 -0
  37. package/dist/site/components/RadioButtons/RadioButtons.types.d.ts +22 -0
  38. package/dist/site/components/RadioButtons/component.d.ts +2 -0
  39. package/dist/site/components/RadioButtons/component.js +201 -0
  40. package/dist/site/components/RadioButtons/component.preview.d.ts +4 -0
  41. package/dist/site/components/RadioButtons/constants.d.ts +108 -0
  42. package/dist/site/components/RadioButtons/css.css +181 -0
  43. package/dist/site/components/RadioButtons/index.d.ts +2 -0
  44. package/dist/site/components/RadioButtons/index.js +6 -0
  45. package/dist/site/components/RadioButtons/manifest.d.ts +5 -0
  46. package/dist/site/components/RadioButtons/manifest.js +284 -0
  47. package/dist/site/components/TextBox/TextBox.types.d.ts +2 -0
  48. package/dist/site/components/TextBox/component.js +26 -18
  49. package/dist/site/components/TextBox/constants.d.ts +23 -5
  50. package/dist/site/components/TextBox/css.css +26 -16
  51. package/dist/site/components/TextBox/manifest.js +99 -33
  52. package/dist/site/components/TextInput/component.js +1 -2
  53. package/dist/site/components/TimePicker/component.js +1 -2
  54. package/dist/site/components/chunks/RequiredIndicator.js +5 -1
  55. package/dist/site/components/chunks/constants18.js +33 -13
  56. package/dist/site/components/chunks/constants24.js +97 -27
  57. package/dist/site/components/chunks/constants25.js +32 -17
  58. package/dist/site/components/chunks/constants26.js +16 -417
  59. package/dist/site/components/chunks/constants27.js +408 -73
  60. package/dist/site/components/chunks/constants28.js +80 -15
  61. package/dist/site/components/chunks/constants29.js +11 -42
  62. package/dist/site/components/chunks/constants30.js +44 -23
  63. package/dist/site/components/chunks/constants31.js +28 -10
  64. package/dist/site/components/chunks/constants32.js +10 -198
  65. package/dist/site/components/chunks/constants33.js +175 -152
  66. package/dist/site/components/chunks/constants34.js +160 -49
  67. package/dist/site/components/chunks/constants35.js +51 -98
  68. package/dist/site/components/chunks/constants36.js +67 -37
  69. package/dist/site/components/chunks/constants37.js +68 -69
  70. package/dist/site/components/chunks/constants38.js +73 -77
  71. package/dist/site/components/chunks/constants39.js +76 -57
  72. package/dist/site/components/chunks/constants40.js +72 -0
  73. package/dist/site/components/chunks/index10.js +4 -2
  74. package/dist/site/components/chunks/utils.js +1 -1
  75. package/dist/site/components/extensions.js +53 -51
  76. package/package.json +2 -2
  77. package/dist/site/components/chunks/InfoCircleSmall.js +0 -7
@@ -8,7 +8,7 @@ import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
8
8
  import { a as requireEq, d as requireIsFunction, r as requireIsObject, e as requireIsLength, c as require_isIndex, b as requireIsArrayLike } from "../chunks/isArrayLike.js";
9
9
  import { c as require_root, r as require_Symbol, a as require_baseGetTag, b as requireIsObjectLike, d as require_freeGlobal } from "../chunks/isObjectLike.js";
10
10
  import { r as requireIsArray } from "../chunks/isArray.js";
11
- import { D as DEFAULT_PROPS } from "../chunks/constants39.js";
11
+ import { D as DEFAULT_PROPS } from "../chunks/constants40.js";
12
12
  import { d as directionStyles } from "../chunks/direction.module.js";
13
13
  var _overArg;
14
14
  var hasRequired_overArg;
@@ -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-JPMZBG44.js";
2
- import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants39.js";
2
+ import { a as DesignStates, b as DISPLAY_NAMES, c as accordionManifestDefaults, C as CONTAINER_INITIAL_HEIGHT } from "../chunks/constants40.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";
@@ -7,7 +7,7 @@ import { E as EnvironmentDefinition } from "../chunks/index2.js";
7
7
  import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
8
8
  import { d as directionStyles } from "../chunks/direction.module.js";
9
9
  import Image3 from "../Image3/component.js";
10
- import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants38.js";
10
+ import { A as ARIA_LABELS, s as selectors, d as dataDefaults } from "../chunks/constants39.js";
11
11
  import { c as commonjsGlobal } from "../chunks/_commonjsHelpers.js";
12
12
  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";
13
13
  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-JPMZBG44.js";
2
2
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
3
- import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants38.js";
3
+ import { D as DesignStates, a as DisplayNames, s as selectors, b as borderDefaultValue } from "../chunks/constants39.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/index5.js";
5
- import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants31.js";
5
+ import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants32.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-JPMZBG44.js";
2
- import { D as DisplayNames } from "../chunks/constants31.js";
2
+ import { D as DisplayNames } from "../chunks/constants32.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 } from "../chunks/constants37.js";
9
+ import { s as semanticClassNames } from "../chunks/constants38.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/index7.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-JPMZBG44.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/constants37.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/constants38.js";
5
5
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
6
6
  const manifest = {
7
7
  id: componentMetadata.id,
@@ -1,16 +1,15 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
- import { F as Field, c as Checkbox, T as Tooltip } from "../chunks/index10.js";
3
+ import { F as Field, d as Checkbox, T as Tooltip } from "../chunks/index10.js";
4
4
  import "react";
5
5
  import { useService } from "@wix/services-manager-react";
6
6
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
7
7
  import { f as formatClassNames } from "../chunks/classNames.js";
8
8
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
- import { R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
9
+ import { R as RequiredIndicator, I as InfoCircleSmall_default } 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, s as selectors, T as TestIds, a as semanticClassNames } from "../chunks/constants36.js";
13
- import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
12
+ import { d as defaultValues, s as selectors, T as TestIds, a as semanticClassNames } from "../chunks/constants37.js";
14
13
  const root = "root__0DpH8";
15
14
  const field = "field__R0D8f";
16
15
  const item = "item__EzhwB";
@@ -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-JPMZBG44.js";
2
- import { D as DesignStates, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants36.js";
2
+ import { D as DesignStates, 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";
@@ -1,16 +1,15 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
- import { a as Fieldset, T as Tooltip, b as CheckboxGroup_CheckboxGroup_CheckboxGroup, c as Checkbox } from "../chunks/index10.js";
3
+ import { a as Fieldset, T as Tooltip, c as CheckboxGroup_CheckboxGroup_CheckboxGroup, d as Checkbox } from "../chunks/index10.js";
4
4
  import "react";
5
5
  import { useService } from "@wix/services-manager-react";
6
6
  import { E as EnvironmentDefinition } from "../chunks/index2.js";
7
7
  import { f as formatClassNames } from "../chunks/classNames.js";
8
8
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
- import { R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
9
+ import { R as RequiredIndicator, I as InfoCircleSmall_default } 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, s as selectors, T as TestIds, b as semanticClassNames } from "../chunks/constants35.js";
13
- import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
12
+ import { d as defaultValues, a as defaultOptions, s as selectors, T as TestIds, b as semanticClassNames } from "../chunks/constants36.js";
14
13
  const root = "root__raraS";
15
14
  const fieldset = "fieldset__pDERL";
16
15
  const labelRow = "labelRow__CTw2X";
@@ -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-JPMZBG44.js";
2
- import { D as DesignStates, c as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants35.js";
2
+ import { D as DesignStates, c as DisplayNames, d as defaultValues, 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, 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/constants34.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/constants35.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-JPMZBG44.js";
2
- import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants34.js";
2
+ import { D as DisplayNames, d as defaultValues, m as manifestClasses } from "../chunks/constants35.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,9 +15,8 @@ import { T as TranslationsDefinition } from "../chunks/index5.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, s as selectors, D as DesignStates, A as ARIA_LABEL_NAMESPACE, d as defaultValues, S as SelectionModeValues, G as GranularityValues, V as VALUE_MISSING_MESSAGE, a as AriaLabels } from "../chunks/constants33.js";
19
- import { R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
20
- import { I as InfoCircleSmall_default } from "../chunks/InfoCircleSmall.js";
18
+ import { E as EMPTY_VALUE, T as TestIds, s as selectors, D as DesignStates, A as ARIA_LABEL_NAMESPACE, d as defaultValues, S as SelectionModeValues, G as GranularityValues, V as VALUE_MISSING_MESSAGE, a as AriaLabels } from "../chunks/constants34.js";
19
+ import { I as InfoCircleSmall_default, R as RequiredIndicator } from "../chunks/RequiredIndicator.js";
21
20
  import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
22
21
  createContext(null);
23
22
  createContext(null);
@@ -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-JPMZBG44.js";
2
- import { D as DesignStates, P as PREVIEW_CALENDAR_OPEN, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants33.js";
2
+ import { D as DesignStates, P as PREVIEW_CALENDAR_OPEN, b as DisplayNames, d as defaultValues, s as selectors } from "../chunks/constants34.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";
@@ -10,7 +10,7 @@ import { f as formatClassNames } from "../chunks/classNames.js";
10
10
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
11
11
  import { d as directionStyles } from "../chunks/direction.module.js";
12
12
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
13
- 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 } from "../chunks/constants32.js";
13
+ 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 } from "../chunks/constants33.js";
14
14
  import { u as useResizeObserver } from "../chunks/useResizeObserver.js";
15
15
  import { D as DismissSmall_default } from "../chunks/DismissSmall.js";
16
16
  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-JPMZBG44.js";
2
- import { D as DesignStates, f as DisplayNames, d as defaultValues, F as FunctionalStateKeys, s as selectors } from "../chunks/constants32.js";
2
+ import { D as DesignStates, f as DisplayNames, d as defaultValues, F as FunctionalStateKeys, s as selectors } from "../chunks/constants33.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/index5.js";
12
- import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants31.js";
12
+ import { A as ARIA_LABEL_NAMESPACE } from "../chunks/constants32.js";
13
13
  const isBrowser = () => typeof window !== "undefined";
14
14
  function useIFrame({
15
15
  reducer = () => ({}),
@@ -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/index5.js";
5
5
  import { d as defineService } from "../chunks/index7.js";
6
- import { T as TranslationKeys, D as DefaultTranslations, a as TRANSLATIONS_NAMESPACE } from "../chunks/constants30.js";
6
+ import { T as TranslationKeys, D as DefaultTranslations, a as TRANSLATIONS_NAMESPACE } from "../chunks/constants31.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-JPMZBG44.js";
2
- import { b as DisplayNames, H as HIPAA_SETTINGS_PANEL_ID } from "../chunks/constants30.js";
2
+ import { b as DisplayNames, H as HIPAA_SETTINGS_PANEL_ID } from "../chunks/constants31.js";
3
3
  const manifest = {
4
4
  id: "c82c4153-edcc-4b6f-8c99-8d021e3bf5ab",
5
5
  type: "wixEditorElements.HipaaIcon",
@@ -6,7 +6,7 @@ import { a as getDataAttributes } from "../chunks/dataUtils.js";
6
6
  import { p as parseSvg } from "../chunks/parseSvg.js";
7
7
  import { c as clsx } from "../chunks/clsx.js";
8
8
  import { L as Link } from "../chunks/Link.js";
9
- import { A as ARIA_LABEL_NAMESPACE, a as ARIA_LABEL_KEY, b as ARIA_LABEL_DEFAULT } from "../chunks/constants29.js";
9
+ import { A as ARIA_LABEL_NAMESPACE, a as ARIA_LABEL_KEY, b as ARIA_LABEL_DEFAULT } from "../chunks/constants30.js";
10
10
  import { d as directionStyles } from "../chunks/direction.module.js";
11
11
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
12
12
  const root = "root__yd5w0";
@@ -1,5 +1,5 @@
1
1
  import { a as ACTIONS, D as DATA, M as MEDIA, N as NativeStateType, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
- import { D as DesignStates, p as presets, c as DisplayNames } from "../chunks/constants29.js";
2
+ import { D as DesignStates, p as presets, c as DisplayNames } from "../chunks/constants30.js";
3
3
  import { c as manifestMouseHover } 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";
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c as clsx } from "../chunks/clsx.js";
3
3
  import { a as getDataAttributes } from "../chunks/dataUtils.js";
4
- import { d as defaultLogoUrl, D as DEFAULT_LOGO_SIZE } from "../chunks/constants28.js";
4
+ import { d as defaultLogoUrl, D as DEFAULT_LOGO_SIZE } from "../chunks/constants29.js";
5
5
  import { I as Image$1 } from "../chunks/Image.js";
6
6
  import { L as Link } from "../chunks/Link.js";
7
7
  const logo = "logo__Y9w6a";
@@ -1,5 +1,5 @@
1
1
  import { D as DATA, a as ACTIONS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
- import { a as DisplayNames } from "../chunks/constants28.js";
2
+ import { a as DisplayNames } from "../chunks/constants29.js";
3
3
  const manifest = {
4
4
  id: "4190f51c-3836-49f6-8114-96219c165b30",
5
5
  type: "wixEditorElements.Logo",
@@ -4,7 +4,7 @@ import { i as isNil } from "../chunks/assert.js";
4
4
  import { r as reportError } from "../chunks/reporters.js";
5
5
  import { p as parseMediaSrc, c as createMediaSrc } from "../chunks/mediaSrcHandler.js";
6
6
  import { c as composeSDKFactories } from "../chunks/composeSDKFactories.js";
7
- import { D as DEFAULT_LOGO_SIZE } from "../chunks/constants28.js";
7
+ import { D as DEFAULT_LOGO_SIZE } from "../chunks/constants29.js";
8
8
  const createLogoSdk = (api) => {
9
9
  const { props, setProps } = api;
10
10
  return {
@@ -5,7 +5,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { c as clsx } from "../chunks/clsx.js";
6
6
  import { d as directionStyles } from "../chunks/direction.module.js";
7
7
  import { B as Button } from "../chunks/Button.js";
8
- import { s as semanticSelectors, r as rootDataDefaults, d as displayPropertyToObserve, a as ariaLabels, t as testIds, p as pauseIconSvg, b as playIconSvg, c as showButtonOnHoverDefaults } from "../chunks/constants27.js";
8
+ import { s as semanticSelectors, r as rootDataDefaults, d as displayPropertyToObserve, a as ariaLabels, t as testIds, p as pauseIconSvg, b as playIconSvg, c as showButtonOnHoverDefaults } from "../chunks/constants28.js";
9
9
  import { g as getDefaultExportFromCjs } from "../chunks/_commonjsHelpers.js";
10
10
  import React__default, { useEffect, useState, useRef, useMemo } from "react";
11
11
  import { f as convertA11yKeysToHtmlFormat } from "../chunks/a11y.js";
@@ -1,6 +1,6 @@
1
1
  import { b as DISPLAY_GROUPS, E as ELEMENTS, D as DATA, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
2
  import { g as getSelector } from "../chunks/manifest.js";
3
- import { e as speedConstraints, f as playButtonDefaults, D as DisplayNames, r as rootDataDefaults, c as showButtonOnHoverDefaults, g as borderDefaultValue, i as initialSize, s as semanticSelectors } from "../chunks/constants27.js";
3
+ import { e as speedConstraints, f as playButtonDefaults, D as DisplayNames, r as rootDataDefaults, c as showButtonOnHoverDefaults, g as borderDefaultValue, i as initialSize, s as semanticSelectors } from "../chunks/constants28.js";
4
4
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable } from "../chunks/manifestSdkMixins.js";
5
5
  const manifest = {
6
6
  id: "13165477-8205-4050-b078-424a1479159e",
@@ -4,7 +4,7 @@ import { useService } from "@wix/services-manager-react";
4
4
  import { U as UrlDefinition } from "../chunks/index11.js";
5
5
  import { d as defineService } from "../chunks/index7.js";
6
6
  import { T as TranslationsDefinition } from "../chunks/index5.js";
7
- import { M as MenuAnimationName, d as defaultTranslations, a as MenuOrientation, A as AnimationPhase, V as VerticalDropdownDisplay, D as DropdownAnimationName, H as HamburgerMenuAnimationName, b as MenuParts, s as selectors, u as useAnimationState, c as ARIA_LABEL_NAMESPACE, t as translationsKeys } from "../chunks/constants26.js";
7
+ import { M as MenuAnimationName, d as defaultTranslations, a as MenuOrientation, A as AnimationPhase, V as VerticalDropdownDisplay, D as DropdownAnimationName, H as HamburgerMenuAnimationName, b as MenuParts, s as selectors, u as useAnimationState, c as ARIA_LABEL_NAMESPACE, t as translationsKeys } from "../chunks/constants27.js";
8
8
  import React__default, { createContext, useContext, useRef, useCallback, useMemo, useState, useEffect, useLayoutEffect } from "react";
9
9
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
10
10
  import { g as getItemDepthSelector, r as rootItemDepthLevel, s as subItemDepthLevel, a as subSubItemDepthLevel } from "../chunks/utils2.js";
@@ -1,5 +1,5 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, b as DISPLAY_GROUPS, N as NativeStateType, a as ACTIONS, D as DATA, L as LAYOUT, I as INTERACTIONS, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
- import { e as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as states, p as presets } from "../chunks/constants26.js";
2
+ import { e as DesignStates, f as DisplayNames, s as selectors, g as DropdownAnchorPositions, h as DropdownAppliedStyleProperties, i as elementKeys, j as states, p as presets } from "../chunks/constants27.js";
3
3
  import { w as withSpec } from "../chunks/manifest.js";
4
4
  import { I as IS_SUPPORT_DESIGN_STATE_SPEC } from "../chunks/specs.js";
5
5
  import { c as manifestMouseHover } from "../chunks/manifestSdkMixins.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { s as selectors } from "../chunks/constants25.js";
4
+ import { s as selectors } from "../chunks/constants26.js";
5
5
  const root = "root__zTlgX";
6
6
  const state = "state__BCzGt";
7
7
  const styles = {
@@ -1,5 +1,5 @@
1
1
  import { b as DISPLAY_GROUPS, a as ACTIONS, D as DATA, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
- import { D as DESCRIPTIONS, a as DISPLAY_NAMES, s as selectors } from "../chunks/constants25.js";
2
+ import { D as DESCRIPTIONS, a as DISPLAY_NAMES, s as selectors } from "../chunks/constants26.js";
3
3
  import { m as manifestFocusable, c as manifestMouseHover, d as manifestClickable, a as manifestChangeable } from "../chunks/manifestSdkMixins.js";
4
4
  import { g as getSelector } from "../chunks/manifest.js";
5
5
  const manifest = {
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useMemo } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
4
  import { g as getAccessibilityAttributesSpread, r as removeAriaPrefix } from "../chunks/a11y.js";
5
- import { F as FULL_PROGRESS, N as NO_PROGRESS, T as TestIDs } from "../chunks/constants24.js";
5
+ import { F as FULL_PROGRESS, N as NO_PROGRESS, T as TestIDs } from "../chunks/constants25.js";
6
6
  import { d as directionStyles } from "../chunks/direction.module.js";
7
7
  import { g as getProgressValue } from "../chunks/utils.js";
8
8
  const progressbar = "progressbar__A8aSK";
@@ -1,5 +1,5 @@
1
1
  import { C as CSS_PROPERTIES, D as DATA, E as ELEMENTS, L as LAYOUT, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
- import { D as DisplayNames } from "../chunks/constants24.js";
2
+ import { D as DisplayNames } from "../chunks/constants25.js";
3
3
  const manifest = {
4
4
  id: "241afef1-74bd-4a10-843f-ac4928c25822",
5
5
  type: "wixEditorElements.ProgressBar",
@@ -1,6 +1,6 @@
1
1
  import { c as createA11ySdk } from "../chunks/a11ySdk.js";
2
2
  import { c as composeSDKFactories } from "../chunks/composeSDKFactories.js";
3
- import { F as FULL_PROGRESS, N as NO_PROGRESS } from "../chunks/constants24.js";
3
+ import { F as FULL_PROGRESS, N as NO_PROGRESS } from "../chunks/constants25.js";
4
4
  import { g as getProgressValue } from "../chunks/utils.js";
5
5
  const PROGRESS_BAR_SDK_TYPE = "$w.ProgressBar";
6
6
  const createProgressBarSdk = (api) => {
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { RadioButtonsProps } from './RadioButtons.types';
3
+ export default function RadioButtonsComponent(props: RadioButtonsProps): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ import { A11y, Direction } from '@wix/editor-react-types';
2
+ import { SdkFunctionFocusableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
3
+ import { RadioButtonsDefaultSelection, RadioButtonsOption } from './constants';
4
+ export type { RadioButtonsOption } from './constants';
5
+ export type RadioButtonsProps = SdkFunctionFocusableProps & {
6
+ id: string;
7
+ className: string;
8
+ options: Array<RadioButtonsOption>;
9
+ value?: string;
10
+ firstSelectedByDefault?: RadioButtonsDefaultSelection;
11
+ onChange?: (value: string) => void;
12
+ label: string;
13
+ tooltip?: string;
14
+ required?: boolean;
15
+ readOnly?: boolean;
16
+ disabled?: boolean;
17
+ direction?: Direction;
18
+ a11y?: Pick<A11y, 'ariaLabel'>;
19
+ wix?: {
20
+ presetsWrapperProps?: Record<string, unknown>;
21
+ };
22
+ };
@@ -0,0 +1,2 @@
1
+ import { default as RadioButtons } from './RadioButtons';
2
+ export default RadioButtons;
@@ -0,0 +1,201 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { c as clsx } from "../chunks/clsx.js";
3
+ import { a as Fieldset, T as Tooltip, R as RadioGroup_RadioGroup_RadioGroup, b as Radio } from "../chunks/index10.js";
4
+ import "react";
5
+ import { useService } from "@wix/services-manager-react";
6
+ import { E as EnvironmentDefinition } from "../chunks/index2.js";
7
+ import { f as formatClassNames } from "../chunks/classNames.js";
8
+ import { a as getDataAttributes } from "../chunks/dataUtils.js";
9
+ import { R as RequiredIndicator, I as InfoCircleSmall_default } from "../chunks/RequiredIndicator.js";
10
+ import { d as directionStyles } from "../chunks/direction.module.js";
11
+ import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
12
+ import { d as defaultValues, a as defaultOptions, s as selectors, T as TestIds, b as semanticClassNames } from "../chunks/constants24.js";
13
+ const root = "root__4SkBh";
14
+ const fieldset = "fieldset__2OxuS";
15
+ const labelRow = "labelRow__xKUgE";
16
+ const groupLabel = "groupLabel__7aJZW";
17
+ const tooltipButton = "tooltipButton__qejF7";
18
+ const tooltip = "tooltip__syq4d";
19
+ const group = "group__M3q8w";
20
+ const option = "option__hEAm9";
21
+ const control = "control__w6l6-";
22
+ const indicator = "indicator__m9-hW";
23
+ const label = "label__bJi-o";
24
+ const styles = {
25
+ root,
26
+ fieldset,
27
+ labelRow,
28
+ groupLabel,
29
+ tooltipButton,
30
+ tooltip,
31
+ group,
32
+ option,
33
+ control,
34
+ indicator,
35
+ label
36
+ };
37
+ const noop = () => {
38
+ };
39
+ function RadioButtonsComponent(props) {
40
+ var _a;
41
+ const environmentService = useService(EnvironmentDefinition);
42
+ const {
43
+ id,
44
+ className = "",
45
+ firstSelectedByDefault = defaultValues.firstSelectedByDefault,
46
+ readOnly = defaultValues.readOnly,
47
+ direction,
48
+ a11y,
49
+ onChange = noop,
50
+ onFocus = noop,
51
+ onBlur = noop,
52
+ wix
53
+ } = props;
54
+ const sourceOptions = Array.isArray(props.options) && props.options.length ? props.options : defaultOptions;
55
+ const options = sourceOptions.filter((option2) => !!option2).map((option2) => ({
56
+ ...option2,
57
+ value: typeof option2.value === "string" && option2.value !== "" ? option2.value : option2.label
58
+ })).filter(
59
+ (option2) => typeof option2.value === "string" && option2.value !== ""
60
+ );
61
+ const label2 = props.label ?? defaultValues.label;
62
+ const tooltip2 = props.tooltip;
63
+ const required = props.required ?? defaultValues.required;
64
+ const disabled = props.disabled ?? defaultValues.disabled;
65
+ const isControlled = props.value !== void 0;
66
+ const selectionProps = isControlled ? { value: props.value } : {
67
+ defaultValue: firstSelectedByDefault === "first" ? (_a = options[0]) == null ? void 0 : _a.value : void 0
68
+ };
69
+ const handleValueChange = (next) => {
70
+ onChange(next);
71
+ };
72
+ const hasLegend = !!label2;
73
+ const ariaLabel = !hasLegend ? (a11y == null ? void 0 : a11y.ariaLabel) || void 0 : void 0;
74
+ const presetsWrapperProps = (wix == null ? void 0 : wix.presetsWrapperProps) || {};
75
+ const rootClassName = clsx(
76
+ className,
77
+ styles.root,
78
+ selectors.root,
79
+ !direction && directionStyles.fallbackDirection
80
+ );
81
+ return /* @__PURE__ */ jsx("div", { className: presetWrapperStyles.presetWrapper, ...presetsWrapperProps, children: /* @__PURE__ */ jsx(
82
+ "div",
83
+ {
84
+ id,
85
+ ...getDataAttributes(props),
86
+ className: rootClassName,
87
+ dir: direction,
88
+ lang: environmentService.language,
89
+ "data-testid": TestIds.root,
90
+ children: /* @__PURE__ */ jsxs(Fieldset.Root, { className: styles.fieldset, children: [
91
+ (hasLegend || tooltip2) && /* @__PURE__ */ jsxs("div", { className: styles.labelRow, children: [
92
+ hasLegend && /* @__PURE__ */ jsxs(
93
+ Fieldset.Legend,
94
+ {
95
+ className: clsx(
96
+ styles.groupLabel,
97
+ selectors.groupLabel,
98
+ formatClassNames(semanticClassNames.groupLabel)
99
+ ),
100
+ "data-testid": TestIds.legend,
101
+ children: [
102
+ label2,
103
+ required && /* @__PURE__ */ jsx(
104
+ RequiredIndicator,
105
+ {
106
+ className: formatClassNames(
107
+ semanticClassNames.requiredIndicator
108
+ ),
109
+ "data-testid": TestIds.requiredIndicator
110
+ }
111
+ )
112
+ ]
113
+ }
114
+ ),
115
+ tooltip2 && /* @__PURE__ */ jsx(Tooltip.Provider, { delay: 0, children: /* @__PURE__ */ jsxs(Tooltip.Root, { children: [
116
+ /* @__PURE__ */ jsx(
117
+ Tooltip.Trigger,
118
+ {
119
+ type: "button",
120
+ className: styles.tooltipButton,
121
+ "data-testid": TestIds.tooltipButton,
122
+ "aria-label": tooltip2,
123
+ children: /* @__PURE__ */ jsx(InfoCircleSmall_default, { "aria-hidden": "true" })
124
+ }
125
+ ),
126
+ /* @__PURE__ */ jsx(Tooltip.Portal, { children: /* @__PURE__ */ jsx(Tooltip.Positioner, { sideOffset: 6, children: /* @__PURE__ */ jsx(Tooltip.Popup, { className: styles.tooltip, children: tooltip2 }) }) })
127
+ ] }) })
128
+ ] }),
129
+ /* @__PURE__ */ jsx(
130
+ RadioGroup_RadioGroup_RadioGroup,
131
+ {
132
+ ...selectionProps,
133
+ onValueChange: (value) => handleValueChange(value),
134
+ disabled,
135
+ readOnly,
136
+ "aria-required": required || void 0,
137
+ "aria-label": ariaLabel,
138
+ className: styles.group,
139
+ "data-testid": TestIds.group,
140
+ onFocus,
141
+ onBlur,
142
+ children: options.map((option2, index) => /* @__PURE__ */ jsxs(
143
+ "label",
144
+ {
145
+ className: clsx(
146
+ styles.option,
147
+ formatClassNames(semanticClassNames.option)
148
+ ),
149
+ "data-testid": TestIds.option,
150
+ children: [
151
+ /* @__PURE__ */ jsx(
152
+ Radio.Root,
153
+ {
154
+ value: option2.value,
155
+ readOnly,
156
+ disabled: disabled || !!option2.disabled,
157
+ className: clsx(
158
+ styles.control,
159
+ selectors.radio,
160
+ formatClassNames(semanticClassNames.radio)
161
+ ),
162
+ "data-testid": TestIds.control,
163
+ children: /* @__PURE__ */ jsx(
164
+ Radio.Indicator,
165
+ {
166
+ keepMounted: true,
167
+ className: clsx(
168
+ styles.indicator,
169
+ selectors.indicator,
170
+ formatClassNames(semanticClassNames.indicator)
171
+ ),
172
+ "data-testid": TestIds.indicator
173
+ }
174
+ )
175
+ }
176
+ ),
177
+ option2.label && /* @__PURE__ */ jsx(
178
+ "span",
179
+ {
180
+ className: clsx(
181
+ styles.label,
182
+ selectors.label,
183
+ formatClassNames(semanticClassNames.label)
184
+ ),
185
+ "data-testid": TestIds.optionLabel,
186
+ children: option2.label
187
+ }
188
+ )
189
+ ]
190
+ },
191
+ option2.value || index
192
+ ))
193
+ }
194
+ )
195
+ ] })
196
+ }
197
+ ) });
198
+ }
199
+ export {
200
+ RadioButtonsComponent as default
201
+ };
@@ -0,0 +1,4 @@
1
+ import { ResolveManifestOverrides } from '../../../utils/ResolveManifestOverrides';
2
+ import { default as RadioButtons } from './RadioButtons';
3
+ export default RadioButtons;
4
+ export declare const resolveManifestOverrides: ResolveManifestOverrides;