@wix/editor-react-components 1.2452.0 → 1.2453.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 (71) hide show
  1. package/dist/site/components/AccordionComponent/AccordionItem.d.ts +1 -1
  2. package/dist/site/components/AccordionComponent/component.js +59 -34
  3. package/dist/site/components/AccordionComponent/manifestConfigs/iconPositionConfig.d.ts +2 -2
  4. package/dist/site/components/AccordionComponent/types.d.ts +9 -3
  5. package/dist/site/components/AudioPlayer/component.js +92 -35
  6. package/dist/site/components/AudioPlayer/manifestConfigs/controlsConfig.d.ts +8 -8
  7. package/dist/site/components/AudioPlayer/manifestConfigs/coverMediaConfig.d.ts +1 -1
  8. package/dist/site/components/AudioPlayer/types.d.ts +26 -0
  9. package/dist/site/components/Breadcrumbs/BreadcrumbItem.d.ts +1 -1
  10. package/dist/site/components/Breadcrumbs/Separator.d.ts +3 -1
  11. package/dist/site/components/Breadcrumbs/component.js +20 -11
  12. package/dist/site/components/Breadcrumbs/types.d.ts +10 -7
  13. package/dist/site/components/Button/Button.types.d.ts +5 -0
  14. package/dist/site/components/Checkbox/Checkbox.types.d.ts +8 -0
  15. package/dist/site/components/Checkbox/component.js +7 -3
  16. package/dist/site/components/CheckboxGroup/CheckboxGroup.types.d.ts +12 -0
  17. package/dist/site/components/CheckboxGroup/component.js +41 -31
  18. package/dist/site/components/CollapsibleText/component.js +7 -5
  19. package/dist/site/components/CollapsibleText/types.d.ts +1 -0
  20. package/dist/site/components/DatePicker/DatePicker.types.d.ts +28 -0
  21. package/dist/site/components/DatePicker/component.js +128 -88
  22. package/dist/site/components/DatePicker/components/DatePickerCalendar.d.ts +3 -1
  23. package/dist/site/components/DatePicker/components/DatePickerField.d.ts +9 -1
  24. package/dist/site/components/DatePicker/components/DatePickerLabel.d.ts +2 -1
  25. package/dist/site/components/Dropdown/Dropdown.types.d.ts +25 -0
  26. package/dist/site/components/Dropdown/component.js +36 -23
  27. package/dist/site/components/Dropdown/components/DropdownChips.d.ts +2 -1
  28. package/dist/site/components/Dropdown/components/DropdownList.d.ts +3 -1
  29. package/dist/site/components/Dropdown/components/DropdownTrigger.d.ts +3 -1
  30. package/dist/site/components/LegacyAppWidget/component.js +3 -2
  31. package/dist/site/components/LegacyAppWidget/components/AppWidget.types.d.ts +4 -2
  32. package/dist/site/components/LegacyContainer/component.d.ts +3 -1
  33. package/dist/site/components/LegacyContainer/component.js +2 -0
  34. package/dist/site/components/LegacyContainer/components/Container.types.d.ts +2 -1
  35. package/dist/site/components/LegacyMultiStateBox/LegacyMultiStateBox.types.d.ts +2 -0
  36. package/dist/site/components/Line/manifestConfigs/shapeConfig.d.ts +2 -2
  37. package/dist/site/components/Line/manifestConfigs/typeConfig.d.ts +2 -2
  38. package/dist/site/components/Lottie/component.js +4 -1
  39. package/dist/site/components/Lottie/types.d.ts +6 -0
  40. package/dist/site/components/Menu/Menu.types.d.ts +33 -3
  41. package/dist/site/components/Menu/component.js +62 -30
  42. package/dist/site/components/Menu/components/MenuContent/MenuItem/MenuItemLabel.d.ts +1 -0
  43. package/dist/site/components/Menu/components/Submenu/types.d.ts +2 -0
  44. package/dist/site/components/Menu/manifestConfigs/dropdownConfig.d.ts +45 -45
  45. package/dist/site/components/ProgressBar/ProgressBar.d.ts +9 -8
  46. package/dist/site/components/ProgressBar/component.js +8 -3
  47. package/dist/site/components/RadioButtons/RadioButtons.types.d.ts +12 -0
  48. package/dist/site/components/RadioButtons/component.js +61 -54
  49. package/dist/site/components/ShareButtons/ShareButtons.types.d.ts +13 -0
  50. package/dist/site/components/ShareButtons/component.js +23 -8
  51. package/dist/site/components/ShareButtons/constants.d.ts +1 -1
  52. package/dist/site/components/Slideshow/SlideIndicators.d.ts +2 -5
  53. package/dist/site/components/Slideshow/Slideshow.d.ts +10 -7
  54. package/dist/site/components/Slideshow/component.js +23 -12
  55. package/dist/site/components/Tabs/Tabs.d.ts +9 -0
  56. package/dist/site/components/Tabs/component.js +23 -10
  57. package/dist/site/components/Tabs/components/ScrollControls/ScrollControls.d.ts +3 -0
  58. package/dist/site/components/TestComp/TestComp.d.ts +3 -0
  59. package/dist/site/components/TestComp/component.js +39 -9
  60. package/dist/site/components/TextBox/TextBox.types.d.ts +12 -0
  61. package/dist/site/components/TextBox/component.js +9 -4
  62. package/dist/site/components/TextEffectsShared/manifestBase.d.ts +15 -15
  63. package/dist/site/components/TimePicker/TimePicker.types.d.ts +16 -0
  64. package/dist/site/components/TimePicker/component.js +59 -33
  65. package/dist/site/components/TimePicker/components/TimePickerField.d.ts +3 -1
  66. package/dist/site/components/TransparentVideo/useTransparentVideo.d.ts +1 -1
  67. package/dist/site/components/chunks/Button.js +7 -4
  68. package/dist/site/components/chunks/ResponsiveBox.js +9 -6
  69. package/dist/site/components/chunks/ResponsiveContainer.js +8 -2
  70. package/dist/site/components/chunks/types.impl.js +0 -18
  71. package/package.json +4 -4
@@ -6,7 +6,7 @@ export interface AccordionItemProps {
6
6
  };
7
7
  isOpen?: boolean;
8
8
  titleHtmlTag?: string;
9
- elementProps?: Pick<AccordionElementProps, 'animatedIcon'>;
9
+ elementProps?: AccordionElementProps;
10
10
  }
11
11
  declare const AccordionItem: React.FC<AccordionItemProps>;
12
12
  export default AccordionItem;
@@ -2439,10 +2439,11 @@ const styles = {
2439
2439
  const AccordionItem = (props) => {
2440
2440
  var _a, _b, _c, _d, _e;
2441
2441
  const { item, isOpen, titleHtmlTag, elementProps } = props;
2442
+ const { animatedIcon: animatedIconProps } = elementProps ?? {};
2442
2443
  const animatedIconRef = useRef(null);
2443
2444
  const isInitialRender = useRef(true);
2444
2445
  const HeaderTag = titleHtmlTag;
2445
- const isAnimatedIcon = ((_b = (_a = elementProps == null ? void 0 : elementProps.animatedIcon) == null ? void 0 : _a.svg) == null ? void 0 : _b.uri) != null && elementProps.animatedIcon.svg.uri === ((_c = elementProps.animatedIcon.svgLastAnimatedSelected) == null ? void 0 : _c.uri);
2446
+ const isAnimatedIcon = ((_a = animatedIconProps == null ? void 0 : animatedIconProps.svg) == null ? void 0 : _a.uri) != null && animatedIconProps.svg.uri === ((_b = animatedIconProps.svgLastAnimatedSelected) == null ? void 0 : _b.uri);
2446
2447
  useEffect(() => {
2447
2448
  var _a2, _b2;
2448
2449
  if (isInitialRender.current) {
@@ -2457,38 +2458,62 @@ const AccordionItem = (props) => {
2457
2458
  (_b2 = animatedIconRef.current) == null ? void 0 : _b2.runAnimationBackward();
2458
2459
  }
2459
2460
  }, [isOpen]);
2460
- return /* @__PURE__ */ jsxs(Item, { className: "accordion-item", value: item.id, children: [
2461
- /* @__PURE__ */ jsx(Header, { asChild: true, children: /* @__PURE__ */ jsx(HeaderTag, { children: /* @__PURE__ */ jsxs(
2462
- Trigger2,
2463
- {
2464
- className: clsx("item-title", styles["accordion-header"]),
2465
- children: [
2466
- /* @__PURE__ */ jsx("span", { className: styles["accordion-item-label"], children: item.name }),
2467
- /* @__PURE__ */ jsx(
2468
- AnimatedIconWithReducedMotion,
2469
- {
2470
- ref: animatedIconRef,
2471
- id: `${item.id}-icon`,
2472
- duration: ((_d = elementProps == null ? void 0 : elementProps.animatedIcon) == null ? void 0 : _d.duration) ?? 0.2,
2473
- svg: (_e = elementProps == null ? void 0 : elementProps.animatedIcon) == null ? void 0 : _e.svg,
2474
- className: clsx("animated-icon", styles.icon, {
2475
- [styles["icon-open"]]: !isAnimatedIcon && isOpen
2476
- })
2477
- }
2478
- )
2479
- ]
2480
- }
2481
- ) }) }),
2482
- /* @__PURE__ */ jsx(
2483
- Content2,
2484
- {
2485
- forceMount: true,
2486
- dir: "ltr",
2487
- className: clsx("item-content", styles["accordion-content"]),
2488
- children: item.content
2489
- }
2490
- )
2491
- ] }, item.id);
2461
+ return /* @__PURE__ */ jsxs(
2462
+ Item,
2463
+ {
2464
+ className: clsx(
2465
+ "accordion-item",
2466
+ (_c = elementProps == null ? void 0 : elementProps.accordionItem) == null ? void 0 : _c.className
2467
+ ),
2468
+ value: item.id,
2469
+ children: [
2470
+ /* @__PURE__ */ jsx(Header, { asChild: true, children: /* @__PURE__ */ jsx(HeaderTag, { children: /* @__PURE__ */ jsxs(
2471
+ Trigger2,
2472
+ {
2473
+ className: clsx(
2474
+ "item-title",
2475
+ styles["accordion-header"],
2476
+ (_d = elementProps == null ? void 0 : elementProps.itemTitle) == null ? void 0 : _d.className
2477
+ ),
2478
+ children: [
2479
+ /* @__PURE__ */ jsx("span", { className: styles["accordion-item-label"], children: item.name }),
2480
+ /* @__PURE__ */ jsx(
2481
+ AnimatedIconWithReducedMotion,
2482
+ {
2483
+ ref: animatedIconRef,
2484
+ id: `${item.id}-icon`,
2485
+ duration: (animatedIconProps == null ? void 0 : animatedIconProps.duration) ?? 0.2,
2486
+ svg: animatedIconProps == null ? void 0 : animatedIconProps.svg,
2487
+ className: clsx(
2488
+ "animated-icon",
2489
+ styles.icon,
2490
+ animatedIconProps == null ? void 0 : animatedIconProps.className,
2491
+ {
2492
+ [styles["icon-open"]]: !isAnimatedIcon && isOpen
2493
+ }
2494
+ )
2495
+ }
2496
+ )
2497
+ ]
2498
+ }
2499
+ ) }) }),
2500
+ /* @__PURE__ */ jsx(
2501
+ Content2,
2502
+ {
2503
+ forceMount: true,
2504
+ dir: "ltr",
2505
+ className: clsx(
2506
+ "item-content",
2507
+ styles["accordion-content"],
2508
+ (_e = elementProps == null ? void 0 : elementProps.itemContent) == null ? void 0 : _e.className
2509
+ ),
2510
+ children: item.content
2511
+ }
2512
+ )
2513
+ ]
2514
+ },
2515
+ item.id
2516
+ );
2492
2517
  };
2493
2518
  function calculateInitialOpenedItems(items, defaultOpen, allowMultipleOpen) {
2494
2519
  let initialItems = [];
@@ -2625,7 +2650,7 @@ const AccordionContainer = (props) => {
2625
2650
  item: { ...item, id: index.toString() },
2626
2651
  isOpen: openedItems.includes(index.toString()),
2627
2652
  titleHtmlTag,
2628
- elementProps: { animatedIcon: elementProps == null ? void 0 : elementProps.animatedIcon }
2653
+ elementProps
2629
2654
  },
2630
2655
  index
2631
2656
  ));
@@ -1,6 +1,6 @@
1
1
  export declare const iconPositionConfig: {
2
2
  customEnum: {
3
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
3
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
4
4
  options: {
5
5
  value: string;
6
6
  displayName: string;
@@ -12,5 +12,5 @@ export declare const iconPositionConfig: {
12
12
  };
13
13
  displayName: string;
14
14
  defaultValue: string;
15
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
15
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
16
16
  };
@@ -1,16 +1,22 @@
1
1
  import { A11y, Direction, VectorArt } from '@wix/editor-react-types';
2
2
  import { SdkFunctionClickableProps, SdkFunctionMouseHoverProps, SdkFunctionFocusableProps } from '../../../utils/functions/sdkFunctionCallbackProps';
3
+ import { AnimatedIconElementProps } from '../Button/Button.types';
3
4
  export interface AccordionItem {
4
5
  name: string;
5
6
  content: React.ReactNode;
6
7
  }
7
8
  export interface AccordionElementProps {
9
+ accordionItem?: {
10
+ className?: string;
11
+ };
8
12
  itemTitle?: {
13
+ className?: string;
9
14
  a11y?: A11y;
10
15
  };
11
- animatedIcon?: {
12
- svg?: VectorArt;
13
- duration?: number;
16
+ itemContent?: {
17
+ className?: string;
18
+ };
19
+ animatedIcon?: AnimatedIconElementProps & {
14
20
  svgLastAnimatedSelected?: VectorArt;
15
21
  };
16
22
  }
@@ -3405,14 +3405,20 @@ const ProgressSlider = ({
3405
3405
  currentTime,
3406
3406
  duration,
3407
3407
  hasError,
3408
- onSeek
3408
+ onSeek,
3409
+ elementProps
3409
3410
  }) => {
3411
+ var _a, _b;
3410
3412
  const timeText = `${formatTime(currentTime)} / ${formatTime(duration)}`;
3411
3413
  return /* @__PURE__ */ jsxs(Fragment, { children: [
3412
3414
  /* @__PURE__ */ jsx(
3413
3415
  $6f909507e6374d18$export$472062a354075cee,
3414
3416
  {
3415
- className: clsx(selectors.progressBar, styles.progressBar),
3417
+ className: clsx(
3418
+ selectors.progressBar,
3419
+ styles.progressBar,
3420
+ (_a = elementProps == null ? void 0 : elementProps.progressBar) == null ? void 0 : _a.className
3421
+ ),
3416
3422
  minValue: 0,
3417
3423
  maxValue: duration || 1,
3418
3424
  value: currentTime,
@@ -3439,7 +3445,17 @@ const ProgressSlider = ({
3439
3445
  )
3440
3446
  }
3441
3447
  ),
3442
- /* @__PURE__ */ jsx("span", { className: clsx(selectors.timeDisplay, styles.timeDisplay), children: timeText })
3448
+ /* @__PURE__ */ jsx(
3449
+ "span",
3450
+ {
3451
+ className: clsx(
3452
+ selectors.timeDisplay,
3453
+ styles.timeDisplay,
3454
+ (_b = elementProps == null ? void 0 : elementProps.timeDisplay) == null ? void 0 : _b.className
3455
+ ),
3456
+ children: timeText
3457
+ }
3458
+ )
3443
3459
  ] });
3444
3460
  };
3445
3461
  const SoundOn = (props) => /* @__PURE__ */ jsx(
@@ -3493,11 +3509,16 @@ const VolumeControls = ({
3493
3509
  currentVolume,
3494
3510
  isMuted,
3495
3511
  onToggleMute,
3496
- onVolumeChange
3512
+ onVolumeChange,
3513
+ className
3497
3514
  }) => /* @__PURE__ */ jsxs(
3498
3515
  $a049562f99e7db0e$export$eb2fcfdbd7ba97d4,
3499
3516
  {
3500
- className: clsx(selectors.volumeControls, styles.volumeControls),
3517
+ className: clsx(
3518
+ selectors.volumeControls,
3519
+ styles.volumeControls,
3520
+ className
3521
+ ),
3501
3522
  "aria-label": ARIA_LABELS.volumeControls,
3502
3523
  children: [
3503
3524
  /* @__PURE__ */ jsx(
@@ -3535,7 +3556,7 @@ const VolumeControls = ({
3535
3556
  }
3536
3557
  );
3537
3558
  const AudioPlayer = (props) => {
3538
- var _a;
3559
+ var _a, _b, _c, _d, _e, _f;
3539
3560
  const {
3540
3561
  id,
3541
3562
  className,
@@ -3551,7 +3572,8 @@ const AudioPlayer = (props) => {
3551
3572
  onEnded,
3552
3573
  onTimeupdate,
3553
3574
  onMouseIn,
3554
- onMouseOut
3575
+ onMouseOut,
3576
+ elementProps
3555
3577
  } = props;
3556
3578
  const audioUrl = audio == null ? void 0 : audio.url;
3557
3579
  const title = audio == null ? void 0 : audio.title;
@@ -3602,13 +3624,26 @@ const AudioPlayer = (props) => {
3602
3624
  Image3,
3603
3625
  {
3604
3626
  id: `${id}-cover`,
3605
- className: clsx(selectors.coverMedia, styles.coverMediaWrapper),
3627
+ className: clsx(
3628
+ selectors.coverMedia,
3629
+ styles.coverMediaWrapper,
3630
+ (_b = elementProps == null ? void 0 : elementProps.coverArt) == null ? void 0 : _b.className
3631
+ ),
3606
3632
  image: coverImage,
3607
3633
  displayMode
3608
3634
  }
3609
3635
  ),
3610
3636
  /* @__PURE__ */ jsxs("div", { className: clsx(selectors.audioTitle, styles.audioTitle), children: [
3611
- /* @__PURE__ */ jsx("span", { className: selectors.title, children: title }),
3637
+ /* @__PURE__ */ jsx(
3638
+ "span",
3639
+ {
3640
+ className: clsx(
3641
+ selectors.title,
3642
+ (_c = elementProps == null ? void 0 : elementProps.audioTitle) == null ? void 0 : _c.className
3643
+ ),
3644
+ children: title
3645
+ }
3646
+ ),
3612
3647
  isSSR && /* @__PURE__ */ jsx(
3613
3648
  "a",
3614
3649
  {
@@ -3619,36 +3654,58 @@ const AudioPlayer = (props) => {
3619
3654
  children: title
3620
3655
  }
3621
3656
  ),
3622
- /* @__PURE__ */ jsx("span", { className: clsx(selectors.artistName, styles.artistName), children: artist })
3623
- ] }),
3624
- /* @__PURE__ */ jsxs("div", { className: clsx(selectors.controls, styles.controls), children: [
3625
- /* @__PURE__ */ jsx(
3626
- PlayButton,
3627
- {
3628
- isPlaying,
3629
- hasError,
3630
- onTogglePlay: togglePlay
3631
- }
3632
- ),
3633
- /* @__PURE__ */ jsx(
3634
- ProgressSlider,
3635
- {
3636
- currentTime,
3637
- duration,
3638
- hasError,
3639
- onSeek: seekTo
3640
- }
3641
- ),
3642
3657
  /* @__PURE__ */ jsx(
3643
- VolumeControls,
3658
+ "span",
3644
3659
  {
3645
- currentVolume,
3646
- isMuted,
3647
- onToggleMute: toggleMute,
3648
- onVolumeChange: setVolume
3660
+ className: clsx(
3661
+ selectors.artistName,
3662
+ styles.artistName,
3663
+ (_d = elementProps == null ? void 0 : elementProps.artistName) == null ? void 0 : _d.className
3664
+ ),
3665
+ children: artist
3649
3666
  }
3650
3667
  )
3651
- ] })
3668
+ ] }),
3669
+ /* @__PURE__ */ jsxs(
3670
+ "div",
3671
+ {
3672
+ className: clsx(
3673
+ selectors.controls,
3674
+ styles.controls,
3675
+ (_e = elementProps == null ? void 0 : elementProps.controls) == null ? void 0 : _e.className
3676
+ ),
3677
+ children: [
3678
+ /* @__PURE__ */ jsx(
3679
+ PlayButton,
3680
+ {
3681
+ isPlaying,
3682
+ hasError,
3683
+ onTogglePlay: togglePlay
3684
+ }
3685
+ ),
3686
+ /* @__PURE__ */ jsx(
3687
+ ProgressSlider,
3688
+ {
3689
+ currentTime,
3690
+ duration,
3691
+ hasError,
3692
+ onSeek: seekTo,
3693
+ elementProps
3694
+ }
3695
+ ),
3696
+ /* @__PURE__ */ jsx(
3697
+ VolumeControls,
3698
+ {
3699
+ currentVolume,
3700
+ isMuted,
3701
+ onToggleMute: toggleMute,
3702
+ onVolumeChange: setVolume,
3703
+ className: (_f = elementProps == null ? void 0 : elementProps.volumeControls) == null ? void 0 : _f.className
3704
+ }
3705
+ )
3706
+ ]
3707
+ }
3708
+ )
3652
3709
  ]
3653
3710
  }
3654
3711
  );
@@ -1,6 +1,6 @@
1
1
  import { NATIVE_STATE_TYPE } from '@wix/component-protocol/schema';
2
2
  export declare const controlsConfig: {
3
- elementType: import('@wix/ambassador-devcenter-v1-component-type-data/types').ElementTypeEnumElementType;
3
+ elementType: import('@wix/component-protocol/schema').ElementTypeEnumElementType;
4
4
  inlineElement: {
5
5
  selector: string;
6
6
  displayName: string;
@@ -10,27 +10,27 @@ export declare const controlsConfig: {
10
10
  };
11
11
  cssCustomProperties: {
12
12
  'progress-fill-color': {
13
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
13
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
14
14
  displayName: string;
15
15
  defaultValue: string;
16
16
  };
17
17
  'volume-control-color': {
18
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
18
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
19
19
  displayName: string;
20
20
  defaultValue: string;
21
21
  };
22
22
  'time-display-color': {
23
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
23
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
24
24
  displayName: string;
25
25
  defaultValue: string;
26
26
  };
27
27
  'play-icon-color': {
28
- cssPropertyType: import('@wix/ambassador-devcenter-v1-component-type-data/types').CssPropertyEnumCssPropertyType;
28
+ cssPropertyType: import('@wix/component-protocol/schema').CssPropertyEnumCssPropertyType;
29
29
  displayName: string;
30
30
  defaultValue: string;
31
31
  };
32
32
  'play-icon-size': {
33
- cssPropertyType: import("@wix/ambassador-devcenter-v1-component-type-data/types").CssPropertyEnumCssPropertyType.length;
33
+ cssPropertyType: import("@wix/component-protocol/schema").CssPropertyEnumCssPropertyType.length;
34
34
  displayName: string;
35
35
  defaultValue: string;
36
36
  };
@@ -46,14 +46,14 @@ export declare const controlsConfig: {
46
46
  displayGroups: {
47
47
  fillColors: {
48
48
  displayName: string;
49
- groupType: import('@wix/ambassador-devcenter-v1-component-type-data/types').GroupType;
49
+ groupType: import('@wix/component-protocol/schema').GroupType;
50
50
  cssDataType: {
51
51
  items: string[];
52
52
  };
53
53
  };
54
54
  icon: {
55
55
  displayName: string;
56
- groupType: import('@wix/ambassador-devcenter-v1-component-type-data/types').GroupType;
56
+ groupType: import('@wix/component-protocol/schema').GroupType;
57
57
  cssDataType: {
58
58
  items: string[];
59
59
  };
@@ -1,5 +1,5 @@
1
1
  export declare const coverMediaConfig: {
2
- elementType: import('@wix/ambassador-devcenter-v1-component-type-data/types').ElementTypeEnumElementType;
2
+ elementType: import('@wix/component-protocol/schema').ElementTypeEnumElementType;
3
3
  refElement: {
4
4
  selector: string;
5
5
  type: string;
@@ -1,6 +1,29 @@
1
1
  import { A11y, Audio, Direction, Image } from '@wix/editor-react-types';
2
2
  import { Image3Props } from '../Image3/Image3.types';
3
3
  import { SdkFunctionMouseHoverProps } from '../../../utils/functions/sdkFunctionCallbackProps';
4
+ export interface AudioPlayerElementProps {
5
+ controls?: {
6
+ className?: string;
7
+ };
8
+ coverArt?: {
9
+ className?: string;
10
+ };
11
+ audioTitle?: {
12
+ className?: string;
13
+ };
14
+ artistName?: {
15
+ className?: string;
16
+ };
17
+ progressBar?: {
18
+ className?: string;
19
+ };
20
+ timeDisplay?: {
21
+ className?: string;
22
+ };
23
+ volumeControls?: {
24
+ className?: string;
25
+ };
26
+ }
4
27
  export interface AudioPlayerProps extends SdkFunctionMouseHoverProps {
5
28
  id?: string;
6
29
  className?: string;
@@ -15,6 +38,7 @@ export interface AudioPlayerProps extends SdkFunctionMouseHoverProps {
15
38
  onPause?: () => void;
16
39
  onEnded?: () => void;
17
40
  onTimeupdate?: () => void;
41
+ elementProps?: AudioPlayerElementProps;
18
42
  }
19
43
  export interface UseAudioPlayerOptions {
20
44
  /** Distinct per mounted player so underlying Howl cache does not merge instances. */
@@ -37,10 +61,12 @@ export interface ProgressSliderProps {
37
61
  duration: number;
38
62
  hasError: boolean;
39
63
  onSeek: (value: number) => void;
64
+ elementProps?: AudioPlayerElementProps;
40
65
  }
41
66
  export interface VolumeControlsProps {
42
67
  currentVolume: number;
43
68
  isMuted: boolean;
44
69
  onToggleMute: () => void;
45
70
  onVolumeChange: (value: number) => void;
71
+ className?: string;
46
72
  }
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { BreadcrumbItemProps } from './types';
3
- export default function BreadcrumbItemComponent({ item, index, isCurrent, isHomepageItem, homeIconProps, collapsedRange, }: BreadcrumbItemProps): React.JSX.Element;
3
+ export default function BreadcrumbItemComponent({ item, index, isCurrent, isHomepageItem, collapsedRange, elementProps, }: BreadcrumbItemProps): React.JSX.Element;
@@ -1,2 +1,4 @@
1
1
  import { default as React } from 'react';
2
- export default function Separator(): React.JSX.Element;
2
+ export default function Separator({ className }: {
3
+ className?: string;
4
+ }): React.JSX.Element;
@@ -1306,11 +1306,15 @@ function getItemHref(link) {
1306
1306
  return (link == null ? void 0 : link.href) || void 0;
1307
1307
  }
1308
1308
  const uniqueKey = (index, id) => id ? `${id}-${index}` : index.toString();
1309
- function Separator() {
1309
+ function Separator({ className }) {
1310
1310
  return /* @__PURE__ */ jsx(
1311
1311
  "span",
1312
1312
  {
1313
- className: clsx(semanticClassNames.separator, styles.separator),
1313
+ className: clsx(
1314
+ semanticClassNames.separator,
1315
+ styles.separator,
1316
+ className
1317
+ ),
1314
1318
  "aria-hidden": "true"
1315
1319
  }
1316
1320
  );
@@ -1320,11 +1324,12 @@ function BreadcrumbItemComponent({
1320
1324
  index = 0,
1321
1325
  isCurrent,
1322
1326
  isHomepageItem = false,
1323
- homeIconProps,
1324
- collapsedRange
1327
+ collapsedRange,
1328
+ elementProps
1325
1329
  }) {
1326
- var _a, _b;
1330
+ var _a, _b, _c, _d;
1327
1331
  const href = item2 ? getItemHref(item2.link) : void 0;
1332
+ const homeIconProps = elementProps == null ? void 0 : elementProps.animatedHomeIcon;
1328
1333
  const hasIcon = !!((_b = (_a = homeIconProps == null ? void 0 : homeIconProps.svg) == null ? void 0 : _a.svgContent) == null ? void 0 : _b.trim());
1329
1334
  const iconDomId = isHomepageItem ? `home-icon-${uniqueKey(index, item2 == null ? void 0 : item2.id)}` : "";
1330
1335
  const oneBasedIndex = index + 1;
@@ -1347,7 +1352,8 @@ function BreadcrumbItemComponent({
1347
1352
  svg: homeIconProps == null ? void 0 : homeIconProps.svg,
1348
1353
  className: clsx(
1349
1354
  semanticClassNames.animatedHomeIcon,
1350
- styles.homeIcon
1355
+ styles.homeIcon,
1356
+ homeIconProps == null ? void 0 : homeIconProps.className
1351
1357
  )
1352
1358
  }
1353
1359
  ) }) : null;
@@ -1371,14 +1377,18 @@ function BreadcrumbItemComponent({
1371
1377
  {
1372
1378
  ...href && { href },
1373
1379
  "aria-current": isCurrent ? "page" : void 0,
1374
- className: clsx(semanticClassNames.itemLabel, styles.label),
1380
+ className: clsx(
1381
+ semanticClassNames.itemLabel,
1382
+ styles.label,
1383
+ (_c = elementProps == null ? void 0 : elementProps.item) == null ? void 0 : _c.className
1384
+ ),
1375
1385
  children: [
1376
1386
  homeIcon2,
1377
1387
  itemContent
1378
1388
  ]
1379
1389
  }
1380
1390
  ),
1381
- !isCurrent && /* @__PURE__ */ jsx(Separator, {})
1391
+ !isCurrent && /* @__PURE__ */ jsx(Separator, { className: (_d = elementProps == null ? void 0 : elementProps.separator) == null ? void 0 : _d.className })
1382
1392
  ]
1383
1393
  }
1384
1394
  );
@@ -1503,7 +1513,6 @@ function Breadcrumbs2({
1503
1513
  items: itemsFromProps
1504
1514
  }) {
1505
1515
  const rootRef = useRef(null);
1506
- const iconProps = elementProps == null ? void 0 : elementProps.animatedHomeIcon;
1507
1516
  const generatedItems = useBreadcrumbItems();
1508
1517
  const items = itemsFromProps ?? generatedItems;
1509
1518
  const collapsedRange = useCollapsedRange(rootRef, items.length);
@@ -1532,8 +1541,8 @@ function Breadcrumbs2({
1532
1541
  index,
1533
1542
  isCurrent: index === items.length - 1,
1534
1543
  isHomepageItem: index === 0,
1535
- homeIconProps: iconProps,
1536
- collapsedRange
1544
+ collapsedRange,
1545
+ elementProps
1537
1546
  },
1538
1547
  uniqueKey(index, item2.id)
1539
1548
  )) }),
@@ -1,16 +1,19 @@
1
- import { A11y, Direction, Link as LinkType, VectorArt } from '@wix/editor-react-types';
1
+ import { A11y, Direction, Link as LinkType } from '@wix/editor-react-types';
2
2
  import { SdkFunctionMouseHoverProps } from '../../../utils/functions/sdkFunctionCallbackProps';
3
+ import { AnimatedIconElementProps } from '../Button/Button.types';
3
4
  export interface BreadcrumbItem {
4
5
  id?: string;
5
6
  label: string;
6
7
  link?: LinkType | string;
7
8
  }
8
- export interface HomeIconElementProps {
9
- svg?: VectorArt;
10
- duration?: number;
11
- }
12
9
  export interface ElementProps {
13
- animatedHomeIcon?: HomeIconElementProps;
10
+ animatedHomeIcon?: AnimatedIconElementProps;
11
+ item?: {
12
+ className?: string;
13
+ };
14
+ separator?: {
15
+ className?: string;
16
+ };
14
17
  }
15
18
  export interface BreadcrumbsProps extends SdkFunctionMouseHoverProps {
16
19
  /** DOM `id` on the root `<nav>`. */
@@ -35,6 +38,6 @@ export interface BreadcrumbItemProps {
35
38
  index?: number;
36
39
  isCurrent?: boolean;
37
40
  isHomepageItem?: boolean;
38
- homeIconProps?: HomeIconElementProps;
39
41
  collapsedRange?: CollapsedRange | null;
42
+ elementProps?: ElementProps;
40
43
  }
@@ -44,8 +44,13 @@ export interface AnimatedIconElementProps {
44
44
  svg?: VectorArt;
45
45
  duration?: number;
46
46
  trigger?: TriggerType;
47
+ className?: string;
48
+ }
49
+ export interface LabelElementProps {
50
+ className?: string;
47
51
  }
48
52
  export interface ElementProps {
53
+ label?: LabelElementProps;
49
54
  animatedIcon?: AnimatedIconElementProps;
50
55
  }
51
56
  export type ButtonProps = {
@@ -15,6 +15,14 @@ export type CheckboxProps = SdkFunctionFocusableProps & FieldValidationProps<boo
15
15
  onChange?: (checked: boolean) => void;
16
16
  direction?: Direction;
17
17
  a11y?: A11y;
18
+ elementProps?: {
19
+ indicator?: {
20
+ className?: string;
21
+ };
22
+ label?: {
23
+ className?: string;
24
+ };
25
+ };
18
26
  wix?: {
19
27
  presetsWrapperProps?: Record<string, unknown>;
20
28
  };