@elementor/editor-controls 3.35.0-491 → 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 +34 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/transition-control/data.ts +36 -6
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
|
-
{
|
|
5666
|
-
|
|
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
|
-
{
|
|
5677
|
-
|
|
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
|
-
{
|
|
5709
|
-
|
|
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
|
]
|