@elementor/editor-controls 3.33.0-137 → 3.33.0-139

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
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import { RefObject, ReactNode, FC, PropsWithChildren, ReactElement, ComponentType } from 'react';
3
- import { SxProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
3
+ import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
4
4
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, LinkPropValue, PropType, CreateOptions } from '@elementor/editor-props';
5
5
  import { StyleDefinitionState } from '@elementor/editor-styles';
6
6
  import * as _elementor_locations from '@elementor/locations';
@@ -84,8 +84,9 @@ type SelectOption = {
84
84
  type Props$6 = {
85
85
  options: SelectOption[];
86
86
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
87
+ MenuProps?: SelectProps['MenuProps'];
87
88
  };
88
- declare const SelectControl: ControlComponent<({ options, onChange }: Props$6) => React$1.JSX.Element>;
89
+ declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: Props$6) => React$1.JSX.Element>;
89
90
 
90
91
  type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
91
92
  propTypeUtil?: PropTypeUtil<string, string>;
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as React$1 from 'react';
2
2
  import { RefObject, ReactNode, FC, PropsWithChildren, ReactElement, ComponentType } from 'react';
3
- import { SxProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
3
+ import { SxProps, SelectProps, UnstableColorFieldProps, ToggleButtonProps, StackProps, PopupState, FormLabelProps } from '@elementor/ui';
4
4
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, LinkPropValue, PropType, CreateOptions } from '@elementor/editor-props';
5
5
  import { StyleDefinitionState } from '@elementor/editor-styles';
6
6
  import * as _elementor_locations from '@elementor/locations';
@@ -84,8 +84,9 @@ type SelectOption = {
84
84
  type Props$6 = {
85
85
  options: SelectOption[];
86
86
  onChange?: (newValue: string | null, previousValue: string | null | undefined) => void;
87
+ MenuProps?: SelectProps['MenuProps'];
87
88
  };
88
- declare const SelectControl: ControlComponent<({ options, onChange }: Props$6) => React$1.JSX.Element>;
89
+ declare const SelectControl: ControlComponent<({ options, onChange, MenuProps }: Props$6) => React$1.JSX.Element>;
89
90
 
90
91
  type Props$5 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
91
92
  propTypeUtil?: PropTypeUtil<string, string>;
package/dist/index.js CHANGED
@@ -474,7 +474,7 @@ var React10 = __toESM(require("react"));
474
474
  var import_editor_props2 = require("@elementor/editor-props");
475
475
  var import_editor_ui = require("@elementor/editor-ui");
476
476
  var import_ui5 = require("@elementor/ui");
477
- var SelectControl = createControl(({ options, onChange }) => {
477
+ var SelectControl = createControl(({ options, onChange, MenuProps }) => {
478
478
  const { value, setValue, disabled, placeholder } = useBoundProp(import_editor_props2.stringPropTypeUtil);
479
479
  const handleChange = (event) => {
480
480
  const newValue = event.target.value || null;
@@ -487,6 +487,7 @@ var SelectControl = createControl(({ options, onChange }) => {
487
487
  sx: { overflow: "hidden" },
488
488
  displayEmpty: true,
489
489
  size: "tiny",
490
+ MenuProps,
490
491
  renderValue: (selectedValue) => {
491
492
  const findOptionByValue = (searchValue) => options.find((opt) => opt.value === searchValue);
492
493
  if (!selectedValue || selectedValue === "") {