@elementor/editor-editing-panel 3.33.0-176 → 3.33.0-178

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.
package/dist/index.d.mts CHANGED
@@ -45,6 +45,7 @@ type SectionContentProps = PropsWithChildren<{
45
45
  sx?: {
46
46
  pt?: number;
47
47
  };
48
+ 'aria-label'?: string;
48
49
  }>;
49
50
  declare const SectionContent: FC<SectionContentProps>;
50
51
 
@@ -313,13 +314,14 @@ declare const controlTypes: {
313
314
  };
314
315
  };
315
316
  readonly text: {
316
- readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, }: {
317
+ readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
317
318
  placeholder?: string;
318
319
  error?: boolean;
319
320
  inputValue?: string;
320
321
  inputDisabled?: boolean;
321
322
  helperText?: string;
322
323
  sx?: _mui_system.SxProps;
324
+ ariaLabel?: string;
323
325
  }) => react.JSX.Element>;
324
326
  readonly layout: "full";
325
327
  readonly propTypeUtil: {
@@ -347,8 +349,9 @@ declare const controlTypes: {
347
349
  };
348
350
  };
349
351
  readonly textarea: {
350
- readonly component: ControlComponent<({ placeholder }: {
352
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
351
353
  placeholder?: string;
354
+ ariaLabel?: string;
352
355
  }) => react.JSX.Element>;
353
356
  readonly layout: "full";
354
357
  readonly propTypeUtil: {
@@ -650,6 +653,7 @@ declare const controlTypes: {
650
653
  }[];
651
654
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
652
655
  MenuProps?: _mui_material.SelectProps["MenuProps"];
656
+ ariaLabel?: string;
653
657
  } & {
654
658
  collectionId?: "off-canvas";
655
659
  }) => react.JSX.Element>;
@@ -688,6 +692,7 @@ declare const controlTypes: {
688
692
  minInputLength?: number;
689
693
  placeholder?: string;
690
694
  label?: string;
695
+ ariaLabel?: string;
691
696
  } & {
692
697
  context: {
693
698
  elementId: string;
@@ -767,6 +772,7 @@ declare const controlTypes: {
767
772
  minInputLength?: number;
768
773
  placeholder?: string;
769
774
  onSetValue?: (value: any | null) => void;
775
+ ariaLabel?: string;
770
776
  }) => react.JSX.Element>;
771
777
  readonly layout: "full";
772
778
  readonly propTypeUtil: {
@@ -833,8 +839,9 @@ declare const controlTypes: {
833
839
  };
834
840
  };
835
841
  readonly url: {
836
- readonly component: ControlComponent<({ placeholder }: {
842
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
837
843
  placeholder?: string;
844
+ ariaLabel?: string;
838
845
  }) => react.JSX.Element>;
839
846
  readonly layout: "full";
840
847
  readonly propTypeUtil: {
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ type SectionContentProps = PropsWithChildren<{
45
45
  sx?: {
46
46
  pt?: number;
47
47
  };
48
+ 'aria-label'?: string;
48
49
  }>;
49
50
  declare const SectionContent: FC<SectionContentProps>;
50
51
 
@@ -313,13 +314,14 @@ declare const controlTypes: {
313
314
  };
314
315
  };
315
316
  readonly text: {
316
- readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, }: {
317
+ readonly component: ControlComponent<({ placeholder, error, inputValue, inputDisabled, helperText, sx, ariaLabel, }: {
317
318
  placeholder?: string;
318
319
  error?: boolean;
319
320
  inputValue?: string;
320
321
  inputDisabled?: boolean;
321
322
  helperText?: string;
322
323
  sx?: _mui_system.SxProps;
324
+ ariaLabel?: string;
323
325
  }) => react.JSX.Element>;
324
326
  readonly layout: "full";
325
327
  readonly propTypeUtil: {
@@ -347,8 +349,9 @@ declare const controlTypes: {
347
349
  };
348
350
  };
349
351
  readonly textarea: {
350
- readonly component: ControlComponent<({ placeholder }: {
352
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
351
353
  placeholder?: string;
354
+ ariaLabel?: string;
352
355
  }) => react.JSX.Element>;
353
356
  readonly layout: "full";
354
357
  readonly propTypeUtil: {
@@ -650,6 +653,7 @@ declare const controlTypes: {
650
653
  }[];
651
654
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
652
655
  MenuProps?: _mui_material.SelectProps["MenuProps"];
656
+ ariaLabel?: string;
653
657
  } & {
654
658
  collectionId?: "off-canvas";
655
659
  }) => react.JSX.Element>;
@@ -688,6 +692,7 @@ declare const controlTypes: {
688
692
  minInputLength?: number;
689
693
  placeholder?: string;
690
694
  label?: string;
695
+ ariaLabel?: string;
691
696
  } & {
692
697
  context: {
693
698
  elementId: string;
@@ -767,6 +772,7 @@ declare const controlTypes: {
767
772
  minInputLength?: number;
768
773
  placeholder?: string;
769
774
  onSetValue?: (value: any | null) => void;
775
+ ariaLabel?: string;
770
776
  }) => react.JSX.Element>;
771
777
  readonly layout: "full";
772
778
  readonly propTypeUtil: {
@@ -833,8 +839,9 @@ declare const controlTypes: {
833
839
  };
834
840
  };
835
841
  readonly url: {
836
- readonly component: ControlComponent<({ placeholder }: {
842
+ readonly component: ControlComponent<({ placeholder, ariaLabel }: {
837
843
  placeholder?: string;
844
+ ariaLabel?: string;
838
845
  }) => react.JSX.Element>;
839
846
  readonly layout: "full";
840
847
  readonly propTypeUtil: {
package/dist/index.js CHANGED
@@ -1651,7 +1651,7 @@ var PopoverBody = (props) => {
1651
1651
  // src/components/section-content.tsx
1652
1652
  var React13 = __toESM(require("react"));
1653
1653
  var import_ui8 = require("@elementor/ui");
1654
- var SectionContent = ({ gap = 2, sx, children }) => /* @__PURE__ */ React13.createElement(import_ui8.Stack, { gap, sx: { ...sx } }, children);
1654
+ var SectionContent = ({ gap = 2, sx, children, "aria-label": ariaLabel }) => /* @__PURE__ */ React13.createElement(import_ui8.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel }, children);
1655
1655
 
1656
1656
  // src/components/style-sections/typography-section/hooks/use-font-families.ts
1657
1657
  var import_react15 = require("react");
@@ -2629,17 +2629,29 @@ var StylesFieldLayout = React28.forwardRef((props, ref) => {
2629
2629
  });
2630
2630
  var Row = React28.forwardRef(
2631
2631
  ({ label, children }, ref) => {
2632
- return /* @__PURE__ */ React28.createElement(import_ui20.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap", ref }, /* @__PURE__ */ React28.createElement(import_ui20.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React28.createElement(ControlLabel, null, label)), /* @__PURE__ */ React28.createElement(
2632
+ return /* @__PURE__ */ React28.createElement(
2633
2633
  import_ui20.Grid,
2634
2634
  {
2635
- item: true,
2636
- xs: 6,
2637
- sx: (theme) => ({
2638
- width: `calc(50% - ${theme.spacing(2)})`
2639
- })
2635
+ container: true,
2636
+ gap: 2,
2637
+ alignItems: "center",
2638
+ flexWrap: "nowrap",
2639
+ ref,
2640
+ "aria-label": `${label} control`
2640
2641
  },
2641
- children
2642
- ));
2642
+ /* @__PURE__ */ React28.createElement(import_ui20.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React28.createElement(ControlLabel, null, label)),
2643
+ /* @__PURE__ */ React28.createElement(
2644
+ import_ui20.Grid,
2645
+ {
2646
+ item: true,
2647
+ xs: 6,
2648
+ sx: (theme) => ({
2649
+ width: `calc(50% - ${theme.spacing(2)})`
2650
+ })
2651
+ },
2652
+ children
2653
+ )
2654
+ );
2643
2655
  }
2644
2656
  );
2645
2657
  var Column = React28.forwardRef(
@@ -3889,7 +3901,8 @@ var CollapsibleContent = ({ children, defaultOpen = false, titleEnd = null }) =>
3889
3901
  variant: "outlined",
3890
3902
  onClick: handleToggle,
3891
3903
  endIcon: /* @__PURE__ */ React57.createElement(CollapseIcon, { open }),
3892
- sx: { my: 0.5 }
3904
+ sx: { my: 0.5 },
3905
+ "aria-label": open ? "Show less" : "Show more"
3893
3906
  },
3894
3907
  open ? (0, import_i18n39.__)("Show less", "elementor") : (0, import_i18n39.__)("Show more", "elementor")
3895
3908
  ), titleEnd && /* @__PURE__ */ React57.createElement(IndicatorsWrapper, null, getCollapsibleValue(titleEnd, open))), /* @__PURE__ */ React57.createElement(import_ui34.Collapse, { in: open, timeout: "auto", unmountOnExit: true }, children));
@@ -4401,6 +4414,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
4401
4414
  {
4402
4415
  id: labelId,
4403
4416
  "aria-controls": contentId,
4417
+ "aria-label": `${title} section`,
4404
4418
  onClick: handleClick,
4405
4419
  sx: { "&:hover": { backgroundColor: "transparent" } }
4406
4420
  },
@@ -4422,7 +4436,7 @@ function Section({ title, children, defaultExpanded = false, titleEnd, unmountOn
4422
4436
  timeout: "auto",
4423
4437
  unmountOnExit
4424
4438
  },
4425
- /* @__PURE__ */ React79.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React79.createElement(import_ui37.Stack, { ref, gap: 2.5, p: 2 }, children))
4439
+ /* @__PURE__ */ React79.createElement(SectionRefContext.Provider, { value: ref }, /* @__PURE__ */ React79.createElement(import_ui37.Stack, { ref, gap: 2.5, p: 2, "aria-label": `${title} section content` }, children))
4426
4440
  ), /* @__PURE__ */ React79.createElement(import_ui37.Divider, null));
4427
4441
  }
4428
4442
 
@@ -5715,7 +5729,7 @@ var DynamicSelection = ({ close: closePopover }) => {
5715
5729
  label: item.label
5716
5730
  }))
5717
5731
  ]);
5718
- return /* @__PURE__ */ React95.createElement(PopoverBody, null, /* @__PURE__ */ React95.createElement(
5732
+ return /* @__PURE__ */ React95.createElement(PopoverBody, { "aria-label": (0, import_i18n65.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React95.createElement(
5719
5733
  import_editor_ui7.PopoverHeader,
5720
5734
  {
5721
5735
  title: (0, import_i18n65.__)("Dynamic tags", "elementor"),
@@ -5833,7 +5847,7 @@ var DynamicSelectionControl = () => {
5833
5847
  },
5834
5848
  ...(0, import_ui48.bindPopover)(selectionPopoverState)
5835
5849
  },
5836
- /* @__PURE__ */ React96.createElement(PopoverBody, null, /* @__PURE__ */ React96.createElement(DynamicSelection, { close: selectionPopoverState.close }))
5850
+ /* @__PURE__ */ React96.createElement(PopoverBody, { "aria-label": (0, import_i18n66.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React96.createElement(DynamicSelection, { close: selectionPopoverState.close }))
5837
5851
  ));
5838
5852
  };
5839
5853
  var DynamicSettingsPopover = ({ dynamicTag }) => {
@@ -5842,7 +5856,15 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
5842
5856
  if (!hasDynamicSettings) {
5843
5857
  return null;
5844
5858
  }
5845
- return /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement(import_ui48.IconButton, { size: SIZE7, ...(0, import_ui48.bindTrigger)(popupState), "aria-label": (0, import_i18n66.__)("Settings", "elementor") }, /* @__PURE__ */ React96.createElement(import_icons28.SettingsIcon, { fontSize: SIZE7 })), /* @__PURE__ */ React96.createElement(
5859
+ return /* @__PURE__ */ React96.createElement(React96.Fragment, null, /* @__PURE__ */ React96.createElement(
5860
+ import_ui48.IconButton,
5861
+ {
5862
+ size: SIZE7,
5863
+ ...(0, import_ui48.bindTrigger)(popupState),
5864
+ "aria-label": (0, import_i18n66.__)("Dynamic settings", "elementor")
5865
+ },
5866
+ /* @__PURE__ */ React96.createElement(import_icons28.SettingsIcon, { fontSize: SIZE7 })
5867
+ ), /* @__PURE__ */ React96.createElement(
5846
5868
  import_ui48.Popover,
5847
5869
  {
5848
5870
  disablePortal: true,
@@ -5854,7 +5876,7 @@ var DynamicSettingsPopover = ({ dynamicTag }) => {
5854
5876
  },
5855
5877
  ...(0, import_ui48.bindPopover)(popupState)
5856
5878
  },
5857
- /* @__PURE__ */ React96.createElement(PopoverBody, null, /* @__PURE__ */ React96.createElement(
5879
+ /* @__PURE__ */ React96.createElement(PopoverBody, { "aria-label": (0, import_i18n66.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React96.createElement(
5858
5880
  import_editor_ui8.PopoverHeader,
5859
5881
  {
5860
5882
  title: dynamicTag.label,
@@ -5916,7 +5938,17 @@ var Control3 = ({ control }) => {
5916
5938
  }
5917
5939
  const layout = getLayout(control);
5918
5940
  const shouldDisablePortal = control.type === "select";
5919
- const controlProps = shouldDisablePortal ? { ...control.props, MenuProps: { ...control.props?.MenuProps ?? {}, disablePortal: true } } : control.props;
5941
+ const baseControlProps = shouldDisablePortal ? {
5942
+ ...control.props,
5943
+ MenuProps: {
5944
+ ...control.props?.MenuProps ?? {},
5945
+ disablePortal: true
5946
+ }
5947
+ } : { ...control.props };
5948
+ const controlProps = {
5949
+ ...baseControlProps,
5950
+ ariaLabel: control.label
5951
+ };
5920
5952
  const isSwitchControl = control.type === "switch";
5921
5953
  const layoutStyleProps = layout === "two-columns" ? {
5922
5954
  display: "grid",