@elementor/editor-controls 3.33.0-157 → 3.33.0-159
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.js
CHANGED
|
@@ -716,6 +716,11 @@ var SelectionEndAdornment = ({
|
|
|
716
716
|
popupState.close();
|
|
717
717
|
};
|
|
718
718
|
const { placeholder, showPrimaryColor } = useUnitPlaceholder(value);
|
|
719
|
+
const itemStyles = {
|
|
720
|
+
display: "flex",
|
|
721
|
+
flexDirection: "column",
|
|
722
|
+
justifyContent: "center"
|
|
723
|
+
};
|
|
719
724
|
return /* @__PURE__ */ React15.createElement(import_ui10.InputAdornment, { position: "end" }, /* @__PURE__ */ React15.createElement(
|
|
720
725
|
StyledButton,
|
|
721
726
|
{
|
|
@@ -730,7 +735,17 @@ var SelectionEndAdornment = ({
|
|
|
730
735
|
{
|
|
731
736
|
key: option,
|
|
732
737
|
onClick: () => handleMenuItemClick(index),
|
|
733
|
-
...menuItemsAttributes?.[option]
|
|
738
|
+
...menuItemsAttributes?.[option],
|
|
739
|
+
primaryTypographyProps: {
|
|
740
|
+
variant: "caption",
|
|
741
|
+
sx: {
|
|
742
|
+
...itemStyles,
|
|
743
|
+
lineHeight: "1"
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
menuItemTextProps: {
|
|
747
|
+
sx: itemStyles
|
|
748
|
+
}
|
|
734
749
|
},
|
|
735
750
|
alternativeOptionLabels[option] ?? option.toUpperCase()
|
|
736
751
|
))));
|
|
@@ -802,6 +817,12 @@ var SizeInput = ({
|
|
|
802
817
|
"aria-controls": popupState.isOpen ? popupState.popupId : void 0,
|
|
803
818
|
"aria-haspopup": true
|
|
804
819
|
};
|
|
820
|
+
const menuItemsAttributes = units2.includes("custom") ? {
|
|
821
|
+
custom: popupAttributes
|
|
822
|
+
} : void 0;
|
|
823
|
+
const alternativeOptionLabels = {
|
|
824
|
+
custom: /* @__PURE__ */ React16.createElement(import_icons2.MathFunctionIcon, { fontSize: "tiny" })
|
|
825
|
+
};
|
|
805
826
|
const InputProps = {
|
|
806
827
|
...popupAttributes,
|
|
807
828
|
readOnly: isUnitExtendedOption(unit),
|
|
@@ -816,12 +837,8 @@ var SizeInput = ({
|
|
|
816
837
|
options: units2,
|
|
817
838
|
onClick: handleUnitChange,
|
|
818
839
|
value: unit,
|
|
819
|
-
alternativeOptionLabels
|
|
820
|
-
|
|
821
|
-
},
|
|
822
|
-
menuItemsAttributes: units2.includes("custom") ? {
|
|
823
|
-
custom: popupAttributes
|
|
824
|
-
} : void 0
|
|
840
|
+
alternativeOptionLabels,
|
|
841
|
+
menuItemsAttributes
|
|
825
842
|
}
|
|
826
843
|
)
|
|
827
844
|
};
|