@elementor/editor-editing-panel 3.35.0-371 → 3.35.0-372

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
@@ -3720,15 +3720,15 @@ var createFlexValueForGroup = (group, flexValue) => {
3720
3720
  if (group === "flex-grow") {
3721
3721
  return import_editor_props13.flexPropTypeUtil.create({
3722
3722
  flexGrow: import_editor_props13.numberPropTypeUtil.create(DEFAULT),
3723
- flexShrink: null,
3724
- flexBasis: null
3723
+ flexShrink: import_editor_props13.numberPropTypeUtil.create(0),
3724
+ flexBasis: import_editor_props13.sizePropTypeUtil.create({ unit: "auto", size: "" })
3725
3725
  });
3726
3726
  }
3727
3727
  if (group === "flex-shrink") {
3728
3728
  return import_editor_props13.flexPropTypeUtil.create({
3729
- flexGrow: null,
3729
+ flexGrow: import_editor_props13.numberPropTypeUtil.create(0),
3730
3730
  flexShrink: import_editor_props13.numberPropTypeUtil.create(DEFAULT),
3731
- flexBasis: null
3731
+ flexBasis: import_editor_props13.sizePropTypeUtil.create({ unit: "auto", size: "" })
3732
3732
  });
3733
3733
  }
3734
3734
  if (group === "custom") {
@@ -3756,13 +3756,14 @@ var getActiveGroup = ({
3756
3756
  if (null === grow && null === shrink && !basis) {
3757
3757
  return null;
3758
3758
  }
3759
- if (shrink && grow || basis) {
3759
+ const isAutoBasis = basis === null || typeof basis === "object" && basis.unit === "auto";
3760
+ if (basis && !isAutoBasis) {
3760
3761
  return "custom";
3761
3762
  }
3762
- if (grow === DEFAULT) {
3763
+ if (grow === DEFAULT && (shrink === null || shrink === 0) && isAutoBasis) {
3763
3764
  return "flex-grow";
3764
3765
  }
3765
- if (shrink === DEFAULT) {
3766
+ if (shrink === DEFAULT && (grow === null || grow === 0) && isAutoBasis) {
3766
3767
  return "flex-shrink";
3767
3768
  }
3768
3769
  return "custom";