@elementor/editor-editing-panel 4.1.0-818 → 4.1.0-820
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 +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +180 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -27
- package/dist/index.mjs.map +1 -1
- package/package.json +21 -21
- package/src/components/style-sections/position-section/position-section.tsx +1 -1
- package/src/components/style-sections/position-section/z-index-field.tsx +29 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elementor/editor-editing-panel",
|
|
3
|
-
"version": "4.1.0-
|
|
3
|
+
"version": "4.1.0-820",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Elementor Team",
|
|
6
6
|
"homepage": "https://elementor.com/",
|
|
@@ -39,28 +39,28 @@
|
|
|
39
39
|
"dev": "tsup --config=../../tsup.dev.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@elementor/editor": "4.1.0-
|
|
43
|
-
"@elementor/editor-canvas": "4.1.0-
|
|
44
|
-
"@elementor/editor-controls": "4.1.0-
|
|
45
|
-
"@elementor/editor-documents": "4.1.0-
|
|
46
|
-
"@elementor/editor-elements": "4.1.0-
|
|
47
|
-
"@elementor/editor-interactions": "4.1.0-
|
|
48
|
-
"@elementor/editor-panels": "4.1.0-
|
|
49
|
-
"@elementor/editor-props": "4.1.0-
|
|
50
|
-
"@elementor/editor-responsive": "4.1.0-
|
|
51
|
-
"@elementor/editor-styles": "4.1.0-
|
|
52
|
-
"@elementor/editor-styles-repository": "4.1.0-
|
|
53
|
-
"@elementor/editor-ui": "4.1.0-
|
|
54
|
-
"@elementor/editor-v1-adapters": "4.1.0-
|
|
42
|
+
"@elementor/editor": "4.1.0-820",
|
|
43
|
+
"@elementor/editor-canvas": "4.1.0-820",
|
|
44
|
+
"@elementor/editor-controls": "4.1.0-820",
|
|
45
|
+
"@elementor/editor-documents": "4.1.0-820",
|
|
46
|
+
"@elementor/editor-elements": "4.1.0-820",
|
|
47
|
+
"@elementor/editor-interactions": "4.1.0-820",
|
|
48
|
+
"@elementor/editor-panels": "4.1.0-820",
|
|
49
|
+
"@elementor/editor-props": "4.1.0-820",
|
|
50
|
+
"@elementor/editor-responsive": "4.1.0-820",
|
|
51
|
+
"@elementor/editor-styles": "4.1.0-820",
|
|
52
|
+
"@elementor/editor-styles-repository": "4.1.0-820",
|
|
53
|
+
"@elementor/editor-ui": "4.1.0-820",
|
|
54
|
+
"@elementor/editor-v1-adapters": "4.1.0-820",
|
|
55
55
|
"@elementor/icons": "^1.68.0",
|
|
56
|
-
"@elementor/editor-variables": "4.1.0-
|
|
57
|
-
"@elementor/locations": "4.1.0-
|
|
58
|
-
"@elementor/menus": "4.1.0-
|
|
59
|
-
"@elementor/schema": "4.1.0-
|
|
60
|
-
"@elementor/session": "4.1.0-
|
|
56
|
+
"@elementor/editor-variables": "4.1.0-820",
|
|
57
|
+
"@elementor/locations": "4.1.0-820",
|
|
58
|
+
"@elementor/menus": "4.1.0-820",
|
|
59
|
+
"@elementor/schema": "4.1.0-820",
|
|
60
|
+
"@elementor/session": "4.1.0-820",
|
|
61
61
|
"@elementor/ui": "1.37.5",
|
|
62
|
-
"@elementor/utils": "4.1.0-
|
|
63
|
-
"@elementor/wp-media": "4.1.0-
|
|
62
|
+
"@elementor/utils": "4.1.0-820",
|
|
63
|
+
"@elementor/wp-media": "4.1.0-820",
|
|
64
64
|
"@wordpress/i18n": "^5.13.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
@@ -113,10 +113,10 @@ export const PositionSection = () => {
|
|
|
113
113
|
{ isNotStatic ? (
|
|
114
114
|
<>
|
|
115
115
|
<DimensionsField />
|
|
116
|
-
<ZIndexField />
|
|
117
116
|
</>
|
|
118
117
|
) : null }
|
|
119
118
|
|
|
119
|
+
<ZIndexField disabled={ ! isNotStatic } />
|
|
120
120
|
<PanelDivider />
|
|
121
121
|
<OffsetField />
|
|
122
122
|
</SectionContent>
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { NumberControl } from '@elementor/editor-controls';
|
|
3
|
+
import { InfoCircleFilledIcon } from '@elementor/icons';
|
|
4
|
+
import { Alert, AlertTitle, Box, Infotip } from '@elementor/ui';
|
|
3
5
|
import { __ } from '@wordpress/i18n';
|
|
4
6
|
|
|
5
7
|
import { StylesField } from '../../../controls-registry/styles-field';
|
|
@@ -7,12 +9,36 @@ import { StylesFieldLayout } from '../../styles-field-layout';
|
|
|
7
9
|
|
|
8
10
|
const Z_INDEX_LABEL = __( 'Z-index', 'elementor' );
|
|
9
11
|
|
|
10
|
-
export const ZIndexField = () => {
|
|
11
|
-
|
|
12
|
+
export const ZIndexField = ( { disabled }: { disabled?: boolean } ) => {
|
|
13
|
+
const StyleField = (
|
|
12
14
|
<StylesField bind="z-index" propDisplayName={ Z_INDEX_LABEL }>
|
|
13
15
|
<StylesFieldLayout label={ Z_INDEX_LABEL }>
|
|
14
|
-
<NumberControl />
|
|
16
|
+
<NumberControl disabled={ disabled } />
|
|
15
17
|
</StylesFieldLayout>
|
|
16
18
|
</StylesField>
|
|
17
19
|
);
|
|
20
|
+
|
|
21
|
+
const content = (
|
|
22
|
+
<Alert color="secondary" icon={ <InfoCircleFilledIcon /> } size="small">
|
|
23
|
+
<AlertTitle>{ __( 'Z-index', 'elementor' ) }</AlertTitle>
|
|
24
|
+
<Box component="span">
|
|
25
|
+
{ __(
|
|
26
|
+
'z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.',
|
|
27
|
+
'elementor'
|
|
28
|
+
) }
|
|
29
|
+
</Box>
|
|
30
|
+
</Alert>
|
|
31
|
+
);
|
|
32
|
+
return disabled ? (
|
|
33
|
+
<Infotip
|
|
34
|
+
placement="right"
|
|
35
|
+
content={ content }
|
|
36
|
+
color="secondary"
|
|
37
|
+
slotProps={ { popper: { sx: { width: 300 } } } }
|
|
38
|
+
>
|
|
39
|
+
<Box>{ StyleField }</Box>
|
|
40
|
+
</Infotip>
|
|
41
|
+
) : (
|
|
42
|
+
<>{ StyleField }</>
|
|
43
|
+
);
|
|
18
44
|
};
|