@elementor/editor-controls 3.35.0-490 → 3.35.0-492

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
@@ -5638,6 +5638,9 @@ var initialTransitionValue = {
5638
5638
  size: { $$type: "size", value: { size: 200, unit: "ms" } }
5639
5639
  };
5640
5640
  var MIN_PRO_VERSION = "3.35";
5641
+ var getIsSiteRtl = () => {
5642
+ return !!window.elementorFrontend?.config?.is_rtl;
5643
+ };
5641
5644
  var shouldExtendTransitionProperties = () => {
5642
5645
  const hasProInstalled = !!window.elementorPro;
5643
5646
  if (!hasProInstalled) {
@@ -5650,6 +5653,7 @@ var shouldExtendTransitionProperties = () => {
5650
5653
  return (0, import_utils6.isVersionGreaterOrEqual)(proVersion, MIN_PRO_VERSION);
5651
5654
  };
5652
5655
  var createTransitionPropertiesList = () => {
5656
+ const isSiteRtl = getIsSiteRtl();
5653
5657
  const baseProperties = [
5654
5658
  {
5655
5659
  label: (0, import_i18n47.__)("Default", "elementor"),
@@ -5662,8 +5666,16 @@ var createTransitionPropertiesList = () => {
5662
5666
  properties: [
5663
5667
  { label: (0, import_i18n47.__)("Margin (all)", "elementor"), value: "margin", isDisabled: true },
5664
5668
  { label: (0, import_i18n47.__)("Margin bottom", "elementor"), value: "margin-block-end", isDisabled: true },
5665
- { label: (0, import_i18n47.__)("Margin left", "elementor"), value: "margin-inline-start", isDisabled: true },
5666
- { label: (0, import_i18n47.__)("Margin right", "elementor"), value: "margin-inline-end", isDisabled: true },
5669
+ {
5670
+ label: isSiteRtl ? (0, import_i18n47.__)("Margin right", "elementor") : (0, import_i18n47.__)("Margin left", "elementor"),
5671
+ value: "margin-inline-start",
5672
+ isDisabled: true
5673
+ },
5674
+ {
5675
+ label: isSiteRtl ? (0, import_i18n47.__)("Margin left", "elementor") : (0, import_i18n47.__)("Margin right", "elementor"),
5676
+ value: "margin-inline-end",
5677
+ isDisabled: true
5678
+ },
5667
5679
  { label: (0, import_i18n47.__)("Margin top", "elementor"), value: "margin-block-start", isDisabled: true }
5668
5680
  ]
5669
5681
  },
@@ -5673,8 +5685,16 @@ var createTransitionPropertiesList = () => {
5673
5685
  properties: [
5674
5686
  { label: (0, import_i18n47.__)("Padding (all)", "elementor"), value: "padding", isDisabled: true },
5675
5687
  { label: (0, import_i18n47.__)("Padding bottom", "elementor"), value: "padding-block-end", isDisabled: true },
5676
- { label: (0, import_i18n47.__)("Padding left", "elementor"), value: "padding-inline-start", isDisabled: true },
5677
- { label: (0, import_i18n47.__)("Padding right", "elementor"), value: "padding-inline-end", isDisabled: true },
5688
+ {
5689
+ label: isSiteRtl ? (0, import_i18n47.__)("Padding right", "elementor") : (0, import_i18n47.__)("Padding left", "elementor"),
5690
+ value: "padding-inline-start",
5691
+ isDisabled: true
5692
+ },
5693
+ {
5694
+ label: isSiteRtl ? (0, import_i18n47.__)("Padding left", "elementor") : (0, import_i18n47.__)("Padding right", "elementor"),
5695
+ value: "padding-inline-end",
5696
+ isDisabled: true
5697
+ },
5678
5698
  { label: (0, import_i18n47.__)("Padding top", "elementor"), value: "padding-block-start", isDisabled: true }
5679
5699
  ]
5680
5700
  },
@@ -5705,8 +5725,16 @@ var createTransitionPropertiesList = () => {
5705
5725
  type: "category",
5706
5726
  properties: [
5707
5727
  { label: (0, import_i18n47.__)("Top", "elementor"), value: "inset-block-start", isDisabled: true },
5708
- { label: (0, import_i18n47.__)("Left", "elementor"), value: "inset-inline-start", isDisabled: true },
5709
- { label: (0, import_i18n47.__)("Right", "elementor"), value: "inset-inline-end", isDisabled: true },
5728
+ {
5729
+ label: isSiteRtl ? (0, import_i18n47.__)("Right", "elementor") : (0, import_i18n47.__)("Left", "elementor"),
5730
+ value: "inset-inline-start",
5731
+ isDisabled: true
5732
+ },
5733
+ {
5734
+ label: isSiteRtl ? (0, import_i18n47.__)("Left", "elementor") : (0, import_i18n47.__)("Right", "elementor"),
5735
+ value: "inset-inline-end",
5736
+ isDisabled: true
5737
+ },
5710
5738
  { label: (0, import_i18n47.__)("Bottom", "elementor"), value: "inset-block-end", isDisabled: true },
5711
5739
  { label: (0, import_i18n47.__)("Z-index", "elementor"), value: "z-index", isDisabled: true }
5712
5740
  ]