@elementor/editor-controls 3.32.0-45 → 3.32.0-46

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elementor/editor-controls",
3
3
  "description": "This package contains the controls model and utils for the Elementor editor",
4
- "version": "3.32.0-45",
4
+ "version": "3.32.0-46",
5
5
  "private": false,
6
6
  "author": "Elementor Team",
7
7
  "homepage": "https://elementor.com/",
@@ -40,21 +40,21 @@
40
40
  "dev": "tsup --config=../../tsup.dev.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@elementor/editor-current-user": "3.32.0-45",
44
- "@elementor/editor-elements": "3.32.0-45",
45
- "@elementor/editor-props": "3.32.0-45",
46
- "@elementor/editor-responsive": "3.32.0-45",
47
- "@elementor/editor-ui": "3.32.0-45",
48
- "@elementor/editor-v1-adapters": "3.32.0-45",
49
- "@elementor/env": "3.32.0-45",
50
- "@elementor/http-client": "3.32.0-45",
43
+ "@elementor/editor-current-user": "3.32.0-46",
44
+ "@elementor/editor-elements": "3.32.0-46",
45
+ "@elementor/editor-props": "3.32.0-46",
46
+ "@elementor/editor-responsive": "3.32.0-46",
47
+ "@elementor/editor-ui": "3.32.0-46",
48
+ "@elementor/editor-v1-adapters": "3.32.0-46",
49
+ "@elementor/env": "3.32.0-46",
50
+ "@elementor/http-client": "3.32.0-46",
51
51
  "@elementor/icons": "^1.51.1",
52
- "@elementor/locations": "3.32.0-45",
53
- "@elementor/query": "3.32.0-45",
54
- "@elementor/session": "3.32.0-45",
52
+ "@elementor/locations": "3.32.0-46",
53
+ "@elementor/query": "3.32.0-46",
54
+ "@elementor/session": "3.32.0-46",
55
55
  "@elementor/ui": "1.36.8",
56
- "@elementor/utils": "3.32.0-45",
57
- "@elementor/wp-media": "3.32.0-45",
56
+ "@elementor/utils": "3.32.0-46",
57
+ "@elementor/wp-media": "3.32.0-46",
58
58
  "@wordpress/i18n": "^5.13.0",
59
59
  "@monaco-editor/react": "^4.7.0"
60
60
  },
@@ -9,7 +9,7 @@ import {
9
9
  type SizePropValue,
10
10
  } from '@elementor/editor-props';
11
11
  import { backdropFilterPropTypeUtil } from '@elementor/editor-props';
12
- import { Box, Grid } from '@elementor/ui';
12
+ import { Box, Grid, styled, UnstableColorIndicator } from '@elementor/ui';
13
13
  import { __ } from '@wordpress/i18n';
14
14
 
15
15
  import { PropKeyProvider, PropProvider, useBoundProp } from '../bound-prop-context';
@@ -188,7 +188,17 @@ export const FilterRepeaterControl = createControl( ( { filterPropName = 'filter
188
188
  );
189
189
  } );
190
190
 
191
- const ItemIcon = () => <></>;
191
+ const StyledUnstableColorIndicator = styled( UnstableColorIndicator )( ( { theme } ) => ( {
192
+ borderRadius: `${ theme.shape.borderRadius / 2 }px`,
193
+ } ) );
194
+
195
+ const ItemIcon = ( { value }: { value: FilterItemPropValue } ) => {
196
+ return isSingleSize( value.value.func.value ?? '' ) ? (
197
+ <></>
198
+ ) : (
199
+ <StyledUnstableColorIndicator size="inherit" component="span" value={ value.value.args.value.color.value } />
200
+ );
201
+ };
192
202
 
193
203
  const ItemLabel = ( { value }: { value: FilterItemPropValue } ) => {
194
204
  return isSingleSize( value.value.func.value ?? '' ) ? (