@wix/editor-react-components 1.2195.0 → 1.2197.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.
@@ -49,7 +49,6 @@ export type ButtonProps = {
49
49
  link?: ButtonLinkProps;
50
50
  type?: 'button' | 'submit';
51
51
  label?: string;
52
- labelContent?: React.ReactNode;
53
52
  disabled?: boolean;
54
53
  className?: string;
55
54
  direction?: Direction;
@@ -9,8 +9,6 @@ type NavigationButtonsProps = {
9
9
  parentDirection?: Direction;
10
10
  siteDirection?: Direction;
11
11
  navigationButtonsProps?: Partial<ButtonProps>;
12
- nextButtonLabel?: string;
13
- prevButtonLabel?: string;
14
12
  };
15
- export declare const NavigationButtons: ({ nextDisabled, onNextClick, prevDisabled, onPrevClick, parentDirection, navigationButtonsProps, siteDirection, nextButtonLabel, prevButtonLabel, }: NavigationButtonsProps) => React.JSX.Element | null;
13
+ export declare const NavigationButtons: ({ nextDisabled, onNextClick, prevDisabled, onPrevClick, parentDirection, navigationButtonsProps, siteDirection, }: NavigationButtonsProps) => React.JSX.Element | null;
16
14
  export {};
@@ -29,8 +29,6 @@ type SlideshowDataProps = SdkFunctionClickableProps & SdkFunctionMouseHoverProps
29
29
  onChange?: (event?: React.SyntheticEvent) => void;
30
30
  onPlay?: () => void;
31
31
  onPause?: () => void;
32
- nextButtonLabel?: string;
33
- prevButtonLabel?: string;
34
32
  /** Utility prop that is not stored in the manifest data namespace. */
35
33
  rawAutoplay?: boolean;
36
34
  };
@@ -1,7 +1,7 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { useState, useRef, useEffect, useCallback, useMemo } from "react";
3
3
  import { c as clsx } from "../chunks/clsx.js";
4
- import { M as MOVEMENT_DIRECTION, A as AUTOPLAY_STATE, s as slideshowDataDefaults, a as semanticClassNames, S as SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT } from "../chunks/Slideshow.semanticClassNames.js";
4
+ import { M as MOVEMENT_DIRECTION, A as AUTOPLAY_STATE, s as semanticClassNames, a as slideshowDataDefaults, S as SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT } from "../chunks/Slideshow.semanticClassNames.js";
5
5
  import { B as Button } from "../chunks/Button.js";
6
6
  import { p as presetWrapperStyles } from "../chunks/presetWrapper.module.js";
7
7
  import { d as directionStyles } from "../chunks/direction.module.js";
@@ -145,7 +145,6 @@ const fadeIn = "fadeIn__CsW3Y";
145
145
  const fadeOut = "fadeOut__w2xZR";
146
146
  const transitionTypeInOut = "transition-type-in-out__W25dJ";
147
147
  const buttons = "buttons__Fx7T8";
148
- const labelSizer = "labelSizer__RyeL0";
149
148
  const btnWrapper = "btnWrapper__T0ETG";
150
149
  const button = "button__y4atu";
151
150
  const prev = "prev__qz5A6";
@@ -196,7 +195,6 @@ const styles = {
196
195
  "transition-type-in-out": "transition-type-in-out__W25dJ",
197
196
  transitionTypeInOut,
198
197
  buttons,
199
- labelSizer,
200
198
  btnWrapper,
201
199
  button,
202
200
  prev,
@@ -213,10 +211,6 @@ const styles = {
213
211
  controlsWrapper,
214
212
  controlsWrapperContent
215
213
  };
216
- const LabelWithSizer = ({ visibleLabel, sizerLabel }) => /* @__PURE__ */ jsxs(Fragment, { children: [
217
- /* @__PURE__ */ jsx("span", { children: visibleLabel }),
218
- /* @__PURE__ */ jsx("span", { className: styles.labelSizer, "aria-hidden": "true", children: sizerLabel })
219
- ] });
220
214
  const NavigationButtons = ({
221
215
  nextDisabled,
222
216
  onNextClick,
@@ -224,9 +218,7 @@ const NavigationButtons = ({
224
218
  onPrevClick,
225
219
  parentDirection,
226
220
  navigationButtonsProps,
227
- siteDirection,
228
- nextButtonLabel = slideshowDataDefaults.nextButtonLabel,
229
- prevButtonLabel = slideshowDataDefaults.prevButtonLabel
221
+ siteDirection
230
222
  }) => {
231
223
  var _a;
232
224
  const direction = navigationButtonsProps == null ? void 0 : navigationButtonsProps.direction;
@@ -256,17 +248,8 @@ const NavigationButtons = ({
256
248
  ),
257
249
  disabled: prevDisabled,
258
250
  ...navigationButtonsProps,
259
- label: prevButtonLabel || void 0,
260
- labelContent: prevButtonLabel ? /* @__PURE__ */ jsx(
261
- LabelWithSizer,
262
- {
263
- visibleLabel: prevButtonLabel,
264
- sizerLabel: nextButtonLabel
265
- }
266
- ) : void 0,
267
251
  a11y: {
268
- ...navigationButtonsProps == null ? void 0 : navigationButtonsProps.a11y,
269
- ariaLabel: prevButtonLabel || slideshowDataDefaults.prevButtonLabel
252
+ ariaLabel: "Previous"
270
253
  }
271
254
  }
272
255
  ),
@@ -280,17 +263,8 @@ const NavigationButtons = ({
280
263
  ),
281
264
  disabled: nextDisabled,
282
265
  ...navigationButtonsProps,
283
- label: nextButtonLabel || void 0,
284
- labelContent: nextButtonLabel ? /* @__PURE__ */ jsx(
285
- LabelWithSizer,
286
- {
287
- visibleLabel: nextButtonLabel,
288
- sizerLabel: prevButtonLabel
289
- }
290
- ) : void 0,
291
266
  a11y: {
292
- ...navigationButtonsProps == null ? void 0 : navigationButtonsProps.a11y,
293
- ariaLabel: nextButtonLabel || slideshowDataDefaults.nextButtonLabel
267
+ ariaLabel: "Next"
294
268
  }
295
269
  }
296
270
  )
@@ -534,8 +508,6 @@ const Slideshow = (props) => {
534
508
  showPauseButton = slideshowDataDefaults.showPauseButton,
535
509
  rawAutoplay = true,
536
510
  a11y,
537
- nextButtonLabel,
538
- prevButtonLabel,
539
511
  onChange: onChangeCallback,
540
512
  onPlay: onPlayCallback,
541
513
  onPause: onPauseCallback,
@@ -724,9 +696,7 @@ const Slideshow = (props) => {
724
696
  prevDisabled: !loop && activeSlideIndex === 0,
725
697
  parentDirection: direction,
726
698
  siteDirection,
727
- navigationButtonsProps,
728
- nextButtonLabel,
729
- prevButtonLabel
699
+ navigationButtonsProps
730
700
  }
731
701
  ),
732
702
  /* @__PURE__ */ jsx(
@@ -1,112 +1,96 @@
1
1
  export declare const DisplayNames: {
2
- readonly root: {
3
- readonly elementDisplayName: "Slideshow";
4
- readonly actions: {
5
- readonly manageItems: "Manage Slideshow";
6
- };
7
- readonly customActions: {
8
- readonly animatedIcon: "Customize Icon";
9
- };
10
- readonly data: {
11
- readonly content: "Box";
12
- readonly autoplay: "Autoplay";
13
- readonly loop: "Continuous loop";
14
- readonly autoplayDelay: "Time on each slide (seconds)";
15
- readonly pauseOnHover: "Pause on hover";
16
- readonly transitionType: "Transitions";
17
- readonly transitionDirection: "Transition direction";
18
- readonly transitionDuration: "Transition duration (seconds)";
19
- readonly slides: "Slide";
20
- readonly activeSlide: "Active slide";
21
- readonly showPauseButton: "Show pause & play button";
22
- readonly nextButtonLabel: "Next navigation button text";
23
- readonly prevButtonLabel: "Previous navigation button text";
24
- };
25
- readonly displayGroups: {
26
- readonly slides: "Slides";
27
- readonly buttonsText: "Buttons text";
28
- };
29
- readonly cssCustomProperties: {
30
- readonly 'animation-duration': "Transition duration";
31
- readonly orientation: "Orientation";
32
- readonly 'icon-placement': "Icon placement";
33
- readonly 'navigation-buttons-position': "Navigation button position";
34
- readonly 'navigation-buttons-arrangement': "Navigation button arrangement";
35
- readonly 'navigation-buttons-alignment': "Navigation button alignment";
36
- readonly 'slide-indicators-position': "Slide indicator position";
37
- readonly 'controls-padding': "Padding";
2
+ root: {
3
+ elementDisplayName: string;
4
+ actions: {
5
+ manageItems: string;
6
+ };
7
+ customActions: {
8
+ animatedIcon: string;
9
+ };
10
+ data: {
11
+ content: string;
12
+ autoplay: string;
13
+ loop: string;
14
+ autoplayDelay: string;
15
+ pauseOnHover: string;
16
+ transitionType: string;
17
+ transitionDirection: string;
18
+ transitionDuration: string;
19
+ slides: string;
20
+ activeSlide: string;
21
+ showPauseButton: string;
22
+ };
23
+ displayGroups: {
24
+ slides: string;
25
+ };
26
+ cssCustomProperties: {
27
+ 'animation-duration': string;
28
+ orientation: string;
29
+ 'navigation-buttons-position': string;
30
+ 'navigation-buttons-arrangement': string;
31
+ 'navigation-buttons-alignment': string;
32
+ 'slide-indicators-position': string;
33
+ 'controls-padding': string;
38
34
  };
39
35
  };
40
- readonly transitionType: {
41
- readonly options: {
42
- readonly none: "None";
43
- readonly slide: "Slide";
44
- readonly crossFade: "Cross-fade";
45
- readonly inOut: "In-and-out";
36
+ transitionType: {
37
+ options: {
38
+ none: string;
39
+ slide: string;
40
+ crossFade: string;
41
+ inOut: string;
46
42
  };
47
43
  };
48
- readonly transitionDirection: {
49
- readonly options: {
50
- readonly rtl: "Right-to-left";
51
- readonly ltr: "Left-to-right";
52
- readonly ttb: "Top-to-bottom";
53
- readonly btt: "Bottom-to-top";
44
+ transitionDirection: {
45
+ options: {
46
+ rtl: string;
47
+ ltr: string;
48
+ ttb: string;
49
+ btt: string;
54
50
  };
55
51
  };
56
- readonly orientation: {
57
- readonly options: {
58
- readonly horizontal: "Horizontal";
59
- readonly vertical: "Vertical";
60
- };
61
- };
62
- readonly iconPlacement: {
63
- readonly horizontal: {
64
- readonly nextToText: "Next to text";
65
- readonly aboveText: "Above text";
66
- readonly belowText: "Below text";
67
- };
68
- readonly vertical: {
69
- readonly verticallyStacked: "Vertically stacked";
70
- readonly beforeText: "Before text";
71
- readonly afterText: "After text";
52
+ orientation: {
53
+ options: {
54
+ horizontal: string;
55
+ vertical: string;
72
56
  };
73
57
  };
74
- readonly position: {
75
- readonly options: {
76
- readonly top: "Top";
77
- readonly center: "Center";
78
- readonly bottom: "Bottom";
79
- readonly end: "End";
80
- readonly middle: "Middle";
81
- readonly start: "Start";
58
+ position: {
59
+ options: {
60
+ top: string;
61
+ center: string;
62
+ bottom: string;
63
+ end: string;
64
+ middle: string;
65
+ start: string;
82
66
  };
83
67
  };
84
- readonly arrangement: {
85
- readonly options: {
86
- readonly separated: "Separated";
87
- readonly together: "Together";
68
+ arrangement: {
69
+ options: {
70
+ separated: string;
71
+ together: string;
88
72
  };
89
73
  };
90
- readonly navigationButtons: {
91
- readonly elementDisplayName: "Navigation buttons";
92
- readonly data: {
93
- readonly icon: "Icon";
74
+ navigationButtons: {
75
+ elementDisplayName: string;
76
+ data: {
77
+ icon: string;
94
78
  };
95
79
  };
96
- readonly slideIndicators: {
97
- readonly elementDisplayName: "Slide indicators";
98
- readonly data: {
99
- readonly indicatorMode: "Display slide indicators";
80
+ slideIndicators: {
81
+ elementDisplayName: string;
82
+ data: {
83
+ indicatorMode: string;
100
84
  };
101
- readonly cssCustomProperties: {
102
- readonly 'dot-width': "Width";
103
- readonly 'dot-gap': "Space between slide indicators";
85
+ cssCustomProperties: {
86
+ 'dot-width': string;
87
+ 'dot-gap': string;
104
88
  };
105
89
  };
106
- readonly indicatorMode: {
107
- readonly options: {
108
- readonly max5: "Max 5";
109
- readonly all: "All";
90
+ indicatorMode: {
91
+ options: {
92
+ max5: string;
93
+ all: string;
110
94
  };
111
95
  };
112
96
  };
@@ -120,8 +104,6 @@ export declare const slideshowDataDefaults: {
120
104
  readonly activeSlide: 0;
121
105
  readonly transitionDuration: 0;
122
106
  readonly showPauseButton: true;
123
- readonly nextButtonLabel: "Next";
124
- readonly prevButtonLabel: "Previous";
125
107
  };
126
108
  export declare const slideshowCssPropertiesDefaults: {
127
109
  readonly border: "none";
@@ -131,8 +113,6 @@ export declare const slideshowCssPropertiesDefaults: {
131
113
  export declare const slideshowCssCustomPropertiesDefaults: {
132
114
  readonly 'animation-duration': "0.5s";
133
115
  readonly orientation: "horizontal";
134
- readonly 'icon-placement-horizontal': "next-to-text";
135
- readonly 'icon-placement-vertical': "vertically-stacked";
136
116
  readonly 'navigation-buttons-position': "center";
137
117
  readonly 'navigation-buttons-arrangement': "separated";
138
118
  readonly 'navigation-buttons-alignment': "center";
@@ -144,7 +124,6 @@ export declare const navigationButtonsPositionFields: readonly ["navigation-butt
144
124
  export declare const navigationButtonsArrangementFields: readonly ["navigation-buttons-arrangement"];
145
125
  export declare const navigationButtonsAlignmentFields: readonly ["navigation-buttons-alignment"];
146
126
  export declare const slideIndicatorsPositionFields: readonly ["slide-indicators-position-horizontal", "slide-indicators-position-vertical"];
147
- export declare const iconPlacementFields: readonly ["icon-placement-horizontal", "icon-placement-vertical"];
148
127
  export declare const AUTOPLAY_STATE: {
149
128
  readonly RUNNING: "running";
150
129
  readonly CANCELLED: "cancelled";
@@ -195,11 +195,9 @@
195
195
  height: var(--navigation-height, auto);
196
196
  flex-direction: var(--navigation-flex-direction, row);
197
197
  justify-content: var(--navigation-justify-content, space-between);
198
- align-items: var(--navigation-align-items, stretch);
198
+ align-items: var(--navigation-align-items, center);
199
199
  gap: var(--gap, 20px);
200
200
  isolation: isolate;
201
- min-width: 0;
202
- max-width: 100%;
203
201
  --base-font: var(--font, 14px sans-serif);
204
202
  --base-color: var(--color, rgba(0, 0, 0, 1));
205
203
  --base-alpha-color: var(--alpha-color, 1);
@@ -262,12 +260,6 @@
262
260
  --base-btn-min-width: var(--btn-min-width, min-content);
263
261
  --icon-direction-offset: 0deg;
264
262
  }
265
- .buttons__Fx7T8 .labelSizer__RyeL0 {
266
- display: block;
267
- visibility: hidden;
268
- height: 0;
269
- overflow: hidden;
270
- }
271
263
  .buttons__Fx7T8 .btnWrapper__T0ETG {
272
264
  display: flex;
273
265
  justify-content: var(--base-container-justify-content);
@@ -306,7 +298,7 @@
306
298
  --label-white-space: var(--base-label-white-space);
307
299
  --label-overflow: var(--base-label-overflow);
308
300
  --label-text-overflow: var(--base-label-text-overflow);
309
- --container-flex-direction: var(--base-container-flex-direction) !important;
301
+ --container-flex-direction: var(--base-container-flex-direction);
310
302
  --container-align-items: var(--base-container-align-items);
311
303
  --container-justify-content: var(--base-container-justify-content);
312
304
  --icon-order: var(--base-icon-order);
@@ -316,11 +308,6 @@
316
308
  );
317
309
  --btn-min-width: var(--base-btn-min-width);
318
310
  pointer-events: auto;
319
- overflow: hidden;
320
- overflow-wrap: break-word;
321
- min-width: 0 !important;
322
- max-width: 100%;
323
- justify-content: center;
324
311
  }
325
312
  .buttons__Fx7T8 .button__y4atu svg {
326
313
  --computed-icon-rotation: calc(
@@ -336,9 +323,7 @@
336
323
  --border-start-end-radius: var(--base-border-start-start-radius);
337
324
  --border-end-start-radius: var(--base-border-end-end-radius);
338
325
  --border-end-end-radius: var(--base-border-end-start-radius);
339
- --container-flex-direction: var(
340
- --base-prev-container-flex-direction
341
- ) !important;
326
+ --container-flex-direction: var(--base-prev-container-flex-direction);
342
327
  }
343
328
  .buttons__Fx7T8 .prev__qz5A6 svg {
344
329
  --computed-icon-rotation: calc(
@@ -1,6 +1,6 @@
1
1
  import { E as ELEMENTS, C as CSS_PROPERTIES, D as DATA, a as ACTIONS, I as INTERACTIONS, b as DISPLAY_GROUPS, L as LAYOUT, c as ContainerType, A as Archetype } from "../chunks/chunk-JPMZBG44.js";
2
2
  import { g as getSelector } from "../chunks/manifest.js";
3
- import { D as DisplayNames, a as semanticClassNames, b as slideshowCssCustomPropertiesDefaults, c as slideshowCssPropertiesDefaults, s as slideshowDataDefaults } from "../chunks/Slideshow.semanticClassNames.js";
3
+ import { D as DisplayNames, s as semanticClassNames, b as slideshowCssCustomPropertiesDefaults, c as slideshowCssPropertiesDefaults, a as slideshowDataDefaults } from "../chunks/Slideshow.semanticClassNames.js";
4
4
  import { a as manifestMouseHover, b as manifestClickable, c as manifestChangeable } from "../chunks/manifestSdkMixins.js";
5
5
  const navigationButtons = {
6
6
  elementType: ELEMENTS.ELEMENT_TYPE.refElement,
@@ -9,9 +9,15 @@ const navigationButtons = {
9
9
  type: "wixEditorElements.Button",
10
10
  displayName: DisplayNames.navigationButtons.elementDisplayName,
11
11
  displayFilters: {
12
+ elements: {
13
+ hide: ["label"]
14
+ },
12
15
  data: {
13
16
  hide: ["a11y", "link", "label", "iconCollapsed", "disabled"]
14
17
  },
18
+ cssProperties: {
19
+ hide: ["rowGap", "columnGap"]
20
+ },
15
21
  cssCustomProperties: {
16
22
  hide: ["icon-position", "content-horizontal-alignment"]
17
23
  }
@@ -25,6 +31,10 @@ const navigationButtons = {
25
31
  iconCollapsed: { disableEditing: true },
26
32
  disabled: { disableEditing: true }
27
33
  },
34
+ cssProperties: {
35
+ rowGap: { disableEditing: true },
36
+ columnGap: { disableEditing: true }
37
+ },
28
38
  cssCustomProperties: {
29
39
  "icon-position": { disableEditing: true },
30
40
  "content-horizontal-alignment": { disableEditing: true }
@@ -129,39 +139,7 @@ const manifest = {
129
139
  presets: {
130
140
  [basePresetName]: {
131
141
  presetCssUrl: `./site/components/Slideshow/presets/${basePresetName}.css`,
132
- displayName: basePresetName,
133
- presetDefaults: {
134
- elements: {
135
- navigationButtons: {
136
- cssProperties: {
137
- rowGap: { defaultValue: "4px" },
138
- columnGap: { defaultValue: "4px" }
139
- },
140
- elements: {
141
- label: {
142
- cssProperties: {
143
- display: { defaultValue: "none" },
144
- font: {
145
- defaultValue: "var(--wst-paragraph-3-font)"
146
- },
147
- color: {
148
- defaultValue: "#650000"
149
- },
150
- letterSpacing: {
151
- defaultValue: "0em"
152
- },
153
- lineHeight: {
154
- defaultValue: "0em"
155
- },
156
- textTransform: {
157
- defaultValue: "none"
158
- }
159
- }
160
- }
161
- }
162
- }
163
- }
164
- }
142
+ displayName: basePresetName
165
143
  }
166
144
  },
167
145
  layout: {
@@ -307,16 +285,6 @@ const manifest = {
307
285
  displayName: DisplayNames.root.data.showPauseButton,
308
286
  defaultValue: slideshowDataDefaults.showPauseButton
309
287
  },
310
- nextButtonLabel: {
311
- dataType: DATA.DATA_TYPE.text,
312
- displayName: DisplayNames.root.data.nextButtonLabel,
313
- defaultValue: slideshowDataDefaults.nextButtonLabel
314
- },
315
- prevButtonLabel: {
316
- dataType: DATA.DATA_TYPE.text,
317
- displayName: DisplayNames.root.data.prevButtonLabel,
318
- defaultValue: slideshowDataDefaults.prevButtonLabel
319
- },
320
288
  ...manifestChangeable(),
321
289
  onPlay: {
322
290
  dataType: DATA.DATA_TYPE.function,
@@ -359,8 +327,6 @@ const manifest = {
359
327
  cssDataType: {
360
328
  items: [
361
329
  "orientation",
362
- "icon-placement-horizontal",
363
- "icon-placement-vertical",
364
330
  "navigation-buttons-arrangement",
365
331
  "navigation-buttons-position-together-horizontal",
366
332
  "navigation-buttons-position-together-vertical",
@@ -422,21 +388,18 @@ const manifest = {
422
388
  },
423
389
  { property: "--navigation-width", value: "100%" },
424
390
  { property: "--navigation-height", value: "auto" },
425
- {
426
- property: "--container-flex-direction",
427
- value: "var(--icon-placement-h-flex-direction, row)"
428
- },
391
+ { property: "--container-flex-direction", value: "row" },
429
392
  {
430
393
  property: "--container-rtl-flex-direction",
431
- value: "var(--icon-placement-h-rtl-flex-direction, row-reverse)"
394
+ value: "row-reverse"
432
395
  },
433
396
  {
434
397
  property: "--prev-container-flex-direction",
435
- value: "var(--icon-placement-h-prev-flex-direction, row-reverse)"
398
+ value: "row-reverse"
436
399
  },
437
400
  {
438
401
  property: "--prev-container-rtl-flex-direction",
439
- value: "var(--icon-placement-h-prev-rtl-flex-direction, row)"
402
+ value: "row"
440
403
  },
441
404
  {
442
405
  property: "--container-justify-content",
@@ -446,10 +409,6 @@ const manifest = {
446
409
  { property: "--icon-orientation-offset", value: "0deg" },
447
410
  { property: "--icon-orientation-scale", value: "scaleX(-1)" },
448
411
  { property: "--icon-rtl-offset", value: "180deg" },
449
- {
450
- property: "--icon-order",
451
- value: "var(--icon-placement-h-icon-order, initial)"
452
- },
453
412
  {
454
413
  property: "--slide-indicators-separated-align-self",
455
414
  value: "var(--slide-indicators-horizontal-align-self)"
@@ -490,21 +449,15 @@ const manifest = {
490
449
  },
491
450
  { property: "--navigation-width", value: "auto" },
492
451
  { property: "--navigation-height", value: "100%" },
493
- {
494
- property: "--container-flex-direction",
495
- value: "var(--icon-placement-v-flex-direction, column)"
496
- },
497
- {
498
- property: "--container-rtl-flex-direction",
499
- value: "var(--icon-placement-v-rtl-flex-direction, column)"
500
- },
452
+ { property: "--container-flex-direction", value: "column" },
453
+ { property: "--container-rtl-flex-direction", value: "column" },
501
454
  {
502
455
  property: "--prev-container-flex-direction",
503
- value: "var(--icon-placement-v-prev-flex-direction, column-reverse)"
456
+ value: "column-reverse"
504
457
  },
505
458
  {
506
459
  property: "--prev-container-rtl-flex-direction",
507
- value: "var(--icon-placement-v-prev-rtl-flex-direction, column-reverse)"
460
+ value: "column-reverse"
508
461
  },
509
462
  { property: "--container-justify-content", value: "center" },
510
463
  {
@@ -514,10 +467,6 @@ const manifest = {
514
467
  { property: "--icon-orientation-offset", value: "90deg" },
515
468
  { property: "--icon-orientation-scale", value: "scaleY(-1)" },
516
469
  { property: "--icon-rtl-offset", value: "0deg" },
517
- {
518
- property: "--icon-order",
519
- value: "var(--icon-placement-v-icon-order, initial)"
520
- },
521
470
  {
522
471
  property: "--slide-indicators-separated-align-self",
523
472
  value: "var(--slide-indicators-vertical-align-self)"
@@ -539,118 +488,6 @@ const manifest = {
539
488
  ]
540
489
  }
541
490
  },
542
- "icon-placement-horizontal": {
543
- displayName: DisplayNames.root.cssCustomProperties["icon-placement"],
544
- cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.customEnum,
545
- defaultValue: slideshowCssCustomPropertiesDefaults["icon-placement-horizontal"],
546
- customEnum: {
547
- cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.string,
548
- options: [
549
- {
550
- value: "next-to-text",
551
- displayName: DisplayNames.iconPlacement.horizontal.nextToText
552
- },
553
- {
554
- value: "above-text",
555
- displayName: DisplayNames.iconPlacement.horizontal.aboveText,
556
- appliedStyles: [
557
- {
558
- property: "--icon-placement-h-flex-direction",
559
- value: "column-reverse"
560
- },
561
- {
562
- property: "--icon-placement-h-prev-flex-direction",
563
- value: "column-reverse"
564
- },
565
- {
566
- property: "--icon-placement-h-rtl-flex-direction",
567
- value: "column-reverse"
568
- },
569
- {
570
- property: "--icon-placement-h-prev-rtl-flex-direction",
571
- value: "column-reverse"
572
- }
573
- ]
574
- },
575
- {
576
- value: "below-text",
577
- displayName: DisplayNames.iconPlacement.horizontal.belowText,
578
- appliedStyles: [
579
- {
580
- property: "--icon-placement-h-flex-direction",
581
- value: "column"
582
- },
583
- {
584
- property: "--icon-placement-h-prev-flex-direction",
585
- value: "column"
586
- },
587
- {
588
- property: "--icon-placement-h-rtl-flex-direction",
589
- value: "column"
590
- },
591
- {
592
- property: "--icon-placement-h-prev-rtl-flex-direction",
593
- value: "column"
594
- }
595
- ]
596
- }
597
- ]
598
- }
599
- },
600
- "icon-placement-vertical": {
601
- displayName: DisplayNames.root.cssCustomProperties["icon-placement"],
602
- cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.customEnum,
603
- defaultValue: slideshowCssCustomPropertiesDefaults["icon-placement-vertical"],
604
- customEnum: {
605
- cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.string,
606
- options: [
607
- {
608
- value: "vertically-stacked",
609
- displayName: DisplayNames.iconPlacement.vertical.verticallyStacked
610
- },
611
- {
612
- value: "before-text",
613
- displayName: DisplayNames.iconPlacement.vertical.beforeText,
614
- appliedStyles: [
615
- { property: "--icon-placement-v-flex-direction", value: "row" },
616
- {
617
- property: "--icon-placement-v-prev-flex-direction",
618
- value: "row"
619
- },
620
- {
621
- property: "--icon-placement-v-rtl-flex-direction",
622
- value: "row-reverse"
623
- },
624
- {
625
- property: "--icon-placement-v-prev-rtl-flex-direction",
626
- value: "row-reverse"
627
- },
628
- { property: "--icon-placement-v-icon-order", value: "-1" }
629
- ]
630
- },
631
- {
632
- value: "after-text",
633
- displayName: DisplayNames.iconPlacement.vertical.afterText,
634
- appliedStyles: [
635
- { property: "--icon-placement-v-flex-direction", value: "row" },
636
- {
637
- property: "--icon-placement-v-prev-flex-direction",
638
- value: "row"
639
- },
640
- {
641
- property: "--icon-placement-v-rtl-flex-direction",
642
- value: "row-reverse"
643
- },
644
- {
645
- property: "--icon-placement-v-prev-rtl-flex-direction",
646
- value: "row-reverse"
647
- },
648
- { property: "--icon-placement-v-icon-order", value: "initial" }
649
- ]
650
- }
651
- ]
652
- }
653
- },
654
491
  "navigation-buttons-position-together-horizontal": {
655
492
  cssPropertyType: CSS_PROPERTIES.CSS_PROPERTY_TYPE.customEnum,
656
493
  displayName: DisplayNames.root.cssCustomProperties["navigation-buttons-position"],
@@ -173,7 +173,6 @@ const Button = (props) => {
173
173
  link: link2,
174
174
  type = "button",
175
175
  label: label2 = "",
176
- labelContent,
177
176
  disabled: isDisabled = false,
178
177
  onClick: propsOnClick,
179
178
  className,
@@ -239,7 +238,6 @@ const Button = (props) => {
239
238
  onBlur
240
239
  });
241
240
  const a11yAttr = useButtonA11y({ propsA11y, ariaAttributes, label: label2 });
242
- const renderedLabel = labelContent ?? label2;
243
241
  const wrapperAttributes = {
244
242
  id,
245
243
  ...getDataAttributes(props),
@@ -249,7 +247,7 @@ const Button = (props) => {
249
247
  ...direction && { dir: direction }
250
248
  };
251
249
  const renderButtonContent = () => /* @__PURE__ */ jsxs(Fragment, { children: [
252
- renderedLabel && /* @__PURE__ */ jsx("span", { className: labelClassName, "data-testid": TestIds.buttonLabel, children: renderedLabel }),
250
+ label2 && /* @__PURE__ */ jsx("span", { className: labelClassName, "data-testid": TestIds.buttonLabel, children: label2 }),
253
251
  /* @__PURE__ */ jsx(
254
252
  AnimatedButtonIcon,
255
253
  {
@@ -18,9 +18,7 @@ const DisplayNames = {
18
18
  transitionDuration: "Transition duration (seconds)",
19
19
  slides: "Slide",
20
20
  activeSlide: "Active slide",
21
- showPauseButton: "Show pause & play button",
22
- nextButtonLabel: "Next navigation button text",
23
- prevButtonLabel: "Previous navigation button text"
21
+ showPauseButton: "Show pause & play button"
24
22
  },
25
23
  displayGroups: {
26
24
  slides: "Slides"
@@ -28,7 +26,6 @@ const DisplayNames = {
28
26
  cssCustomProperties: {
29
27
  "animation-duration": "Transition duration",
30
28
  orientation: "Orientation",
31
- "icon-placement": "Icon placement",
32
29
  "navigation-buttons-position": "Navigation button position",
33
30
  "navigation-buttons-arrangement": "Navigation button arrangement",
34
31
  "navigation-buttons-alignment": "Navigation button alignment",
@@ -58,18 +55,6 @@ const DisplayNames = {
58
55
  vertical: "Vertical"
59
56
  }
60
57
  },
61
- iconPlacement: {
62
- horizontal: {
63
- nextToText: "Next to text",
64
- aboveText: "Above text",
65
- belowText: "Below text"
66
- },
67
- vertical: {
68
- verticallyStacked: "Vertically stacked",
69
- beforeText: "Before text",
70
- afterText: "After text"
71
- }
72
- },
73
58
  position: {
74
59
  options: {
75
60
  top: "Top",
@@ -115,9 +100,7 @@ const slideshowDataDefaults = {
115
100
  transitionDirection: "rtl",
116
101
  activeSlide: 0,
117
102
  transitionDuration: 0,
118
- showPauseButton: true,
119
- nextButtonLabel: "Next",
120
- prevButtonLabel: "Previous"
103
+ showPauseButton: true
121
104
  };
122
105
  const slideshowCssPropertiesDefaults = {
123
106
  border: "none",
@@ -127,8 +110,6 @@ const slideshowCssPropertiesDefaults = {
127
110
  const slideshowCssCustomPropertiesDefaults = {
128
111
  "animation-duration": "0.5s",
129
112
  orientation: "horizontal",
130
- "icon-placement-horizontal": "next-to-text",
131
- "icon-placement-vertical": "vertically-stacked",
132
113
  "navigation-buttons-arrangement": "separated",
133
114
  "navigation-buttons-alignment": "center",
134
115
  "controls-padding": "0px"
@@ -156,8 +137,8 @@ export {
156
137
  DisplayNames as D,
157
138
  MOVEMENT_DIRECTION as M,
158
139
  SLIDESHOW_SLIDE_LTR_DIRECTION_EXPERIMENT as S,
159
- semanticClassNames as a,
140
+ slideshowDataDefaults as a,
160
141
  slideshowCssCustomPropertiesDefaults as b,
161
142
  slideshowCssPropertiesDefaults as c,
162
- slideshowDataDefaults as s
143
+ semanticClassNames as s
163
144
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/editor-react-components",
3
- "version": "1.2195.0",
3
+ "version": "1.2197.0",
4
4
  "description": "React components for the Wix Editor",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -103,7 +103,7 @@
103
103
  "@wix/business-tools": "^1.0.225",
104
104
  "@wix/ci-build-info": "^1.0.333",
105
105
  "@wix/cli": "^1.1.218",
106
- "@wix/cli-app": "^1.1.218",
106
+ "@wix/cli-app": "^1.1.219",
107
107
  "@wix/component-protocol": "^1.237.0",
108
108
  "@wix/component-storybook-utils": "^1.0.0",
109
109
  "@wix/components-infra": "^1.0.0",
@@ -188,5 +188,5 @@
188
188
  "registry": "https://registry.npmjs.org/",
189
189
  "access": "public"
190
190
  },
191
- "falconPackageHash": "9f91c01efe733203229b0392709a5e25bda98ce2b9cad1031e4ca2e4"
191
+ "falconPackageHash": "44bd0ada60203ef7f5670961095b2f459d97782526a479e91f061870"
192
192
  }