@elementor/editor-controls 1.1.0 → 1.3.0

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.
Files changed (43) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/dist/index.d.mts +26 -13
  3. package/dist/index.d.ts +26 -13
  4. package/dist/index.js +979 -575
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +823 -418
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +11 -11
  9. package/src/bound-prop-context/prop-context.tsx +3 -3
  10. package/src/bound-prop-context/prop-key-context.tsx +1 -0
  11. package/src/bound-prop-context/use-bound-prop.ts +5 -1
  12. package/src/components/font-family-selector.tsx +30 -13
  13. package/src/components/popover-content.tsx +3 -11
  14. package/src/components/repeater.tsx +3 -1
  15. package/src/components/text-field-popover.tsx +21 -20
  16. package/src/controls/aspect-ratio-control.tsx +20 -2
  17. package/src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-position.tsx +2 -2
  18. package/src/controls/background-control/background-overlay/background-image-overlay/background-image-overlay-size.tsx +2 -2
  19. package/src/controls/background-control/background-overlay/background-overlay-repeater-control.tsx +3 -10
  20. package/src/controls/box-shadow-repeater-control.tsx +3 -3
  21. package/src/controls/equal-unequal-sizes-control.tsx +4 -10
  22. package/src/controls/filter-repeater-control.tsx +186 -0
  23. package/src/controls/font-family-control/font-family-control.tsx +20 -4
  24. package/src/controls/gap-control.tsx +3 -3
  25. package/src/controls/image-control.tsx +46 -30
  26. package/src/controls/key-value-control.tsx +39 -19
  27. package/src/controls/link-control.tsx +28 -21
  28. package/src/controls/linked-dimensions-control.tsx +4 -4
  29. package/src/controls/number-control.tsx +3 -3
  30. package/src/controls/repeatable-control.tsx +98 -8
  31. package/src/controls/select-control.tsx +22 -2
  32. package/src/controls/size-control.tsx +3 -3
  33. package/src/controls/stroke-control.tsx +2 -2
  34. package/src/controls/svg-media-control.tsx +0 -2
  35. package/src/controls/switch-control.tsx +9 -1
  36. package/src/controls/transform-control/functions/axis-row.tsx +32 -0
  37. package/src/controls/transform-control/functions/move.tsx +44 -0
  38. package/src/controls/transform-control/transform-content.tsx +36 -0
  39. package/src/controls/transform-control/transform-icon.tsx +12 -0
  40. package/src/controls/transform-control/transform-label.tsx +27 -0
  41. package/src/controls/transform-control/transform-repeater-control.tsx +42 -0
  42. package/src/hooks/use-repeatable-control-context.ts +6 -1
  43. package/src/index.ts +4 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # @elementor/editor-controls
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 5c6a912: Fixed issue with item label in repeatable control
8
+ - b3726f6: Add transform move control
9
+ - b17730a: Placeholder logic added to select control & font-family control
10
+ - 1a37b1c: Update the Elementor UI version.
11
+ - c62d64c: Injected prop dependency API into settings field
12
+ - d1fc9d2: Update TextFieldPopover to use slotProps for Paper styling
13
+ - 12333b0: Update `@elementor/icons` package.
14
+
15
+ ### Patch Changes
16
+
17
+ - 8f38cf3: Fix image control layout
18
+ - d4406fd: Add missing FF to link control.
19
+ - Updated dependencies [b3726f6]
20
+ - Updated dependencies [68ce0d9]
21
+ - Updated dependencies [1a37b1c]
22
+ - Updated dependencies [c62d64c]
23
+ - Updated dependencies [12333b0]
24
+ - @elementor/editor-props@0.16.0
25
+ - @elementor/editor-current-user@0.6.0
26
+ - @elementor/editor-ui@0.14.0
27
+ - @elementor/editor-elements@0.9.0
28
+
29
+ ## 1.2.0
30
+
31
+ ### Minor Changes
32
+
33
+ - ab6ad10: Adds support for css filter property, blur and brightness only.
34
+ - a0ff6bc: Reset value button position fix, input reset fix for aspect ratio control
35
+ - bfe6b0b: Update the width settings for the popover selection list.
36
+ - 125de7b: Show placeholders in Number control
37
+ - 9bbd4e3: Ensure repeatable control works with key-value control
38
+ - d85ca8c: Update the popover styling for version 3.30.
39
+
40
+ ### Patch Changes
41
+
42
+ - 0b32e5c: Removed % units from blur css filter.
43
+ - 16df763: Add changed prop name to atomic element setting history
44
+ - 6c6f0d6: Standardize style field layout and add `propDisplayName` prop to `StylesField`
45
+ - Updated dependencies [e953081]
46
+ - Updated dependencies [ab6ad10]
47
+ - Updated dependencies [c91168a]
48
+ - Updated dependencies [bfe6b0b]
49
+ - Updated dependencies [ea388a1]
50
+ - Updated dependencies [16df763]
51
+ - Updated dependencies [d85ca8c]
52
+ - @elementor/utils@0.5.0
53
+ - @elementor/editor-props@0.15.0
54
+ - @elementor/editor-ui@0.13.0
55
+ - @elementor/editor-elements@0.8.7
56
+ - @elementor/editor-v1-adapters@0.12.1
57
+ - @elementor/wp-media@0.6.1
58
+ - @elementor/editor-responsive@0.13.6
59
+
3
60
  ## 1.1.0
4
61
 
5
62
  ### Minor Changes
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import { MutableRefObject, ReactNode, ComponentType, PropsWithChildren } from 'react';
2
+ import { RefObject, ReactNode, FC, PropsWithChildren, ComponentType } from 'react';
3
3
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
4
- import { UnstableColorFieldProps, ToggleButtonProps, StackProps, SxProps, Theme, FormLabelProps } from '@elementor/ui';
4
+ import { UnstableColorFieldProps, ToggleButtonProps, StackProps, FormLabelProps } from '@elementor/ui';
5
5
  import * as _elementor_locations from '@elementor/locations';
6
6
 
7
7
  type ImageControlProps = {
@@ -9,10 +9,9 @@ type ImageControlProps = {
9
9
  label: string;
10
10
  value: string;
11
11
  }[];
12
- resolutionLabel?: string;
13
12
  showMode?: 'all' | 'media' | 'sizes';
14
13
  };
15
- declare const ImageControl: ControlComponent<({ sizes, resolutionLabel, showMode }: ImageControlProps) => React$1.JSX.Element>;
14
+ declare const ImageControl: ControlComponent<({ sizes, showMode }: ImageControlProps) => React$1.JSX.Element>;
16
15
 
17
16
  declare const TextControl: ControlComponent<({ placeholder }: {
18
17
  placeholder?: string;
@@ -34,7 +33,7 @@ type SizeControlProps = {
34
33
  units?: Unit[];
35
34
  extendedOptions?: ExtendedOption[];
36
35
  disableCustom?: boolean;
37
- anchorRef?: MutableRefObject<HTMLElement | undefined>;
36
+ anchorRef?: RefObject<HTMLDivElement | null>;
38
37
  defaultUnit?: Unit;
39
38
  };
40
39
  declare const SizeControl: ControlComponent<(props: SizeControlProps) => React$1.JSX.Element>;
@@ -43,6 +42,8 @@ declare const StrokeControl: ControlComponent<() => React$1.JSX.Element>;
43
42
 
44
43
  declare const BoxShadowRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
45
44
 
45
+ declare const FilterRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
46
+
46
47
  type Props$5 = {
47
48
  options: Array<{
48
49
  label: string;
@@ -99,7 +100,7 @@ type ToggleControlProps<T extends PropValue> = {
99
100
  };
100
101
  declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
101
102
 
102
- declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
103
+ declare const NumberControl: ControlComponent<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, }: {
103
104
  placeholder?: string;
104
105
  max?: number;
105
106
  min?: number;
@@ -135,8 +136,9 @@ type FontCategory = {
135
136
  };
136
137
  type FontFamilyControlProps = {
137
138
  fontFamilies: FontCategory[];
139
+ sectionWidth: number;
138
140
  };
139
- declare const FontFamilyControl: ControlComponent<({ fontFamilies }: FontFamilyControlProps) => React$1.JSX.Element>;
141
+ declare const FontFamilyControl: ControlComponent<({ fontFamilies, sectionWidth }: FontFamilyControlProps) => React$1.JSX.Element>;
140
142
 
141
143
  declare const UrlControl: ControlComponent<({ placeholder }: {
142
144
  placeholder?: string;
@@ -156,6 +158,7 @@ type Props$1 = ControlProps<{
156
158
  allowCustomValues?: boolean;
157
159
  minInputLength?: number;
158
160
  placeholder?: string;
161
+ label?: string;
159
162
  }>;
160
163
  declare const LinkControl: ControlComponent<(props: Props$1) => React$1.JSX.Element>;
161
164
 
@@ -182,16 +185,19 @@ type ChildControlConfig = {
182
185
 
183
186
  type RepeatableControlProps = {
184
187
  label: string;
188
+ repeaterLabel: string;
185
189
  childControlConfig: ChildControlConfig;
186
190
  showDuplicate?: boolean;
187
191
  showToggle?: boolean;
192
+ initialValues?: object;
193
+ patternLabel?: string;
194
+ placeholder?: string;
188
195
  };
189
- declare const RepeatableControl: ControlComponent<({ label, childControlConfig, showDuplicate, showToggle }: RepeatableControlProps) => React$1.JSX.Element | null>;
196
+ declare const RepeatableControl: ControlComponent<({ repeaterLabel, childControlConfig, showDuplicate, showToggle, initialValues, patternLabel, placeholder, }: RepeatableControlProps) => React$1.JSX.Element | null>;
190
197
 
191
198
  type KeyValueControlProps = {
192
199
  keyName?: string;
193
200
  valueName?: string;
194
- sx?: SxProps<Theme>;
195
201
  regexKey?: string;
196
202
  regexValue?: string;
197
203
  validationErrorMessage?: string;
@@ -200,6 +206,10 @@ declare const KeyValueControl: ControlComponent<(props?: KeyValueControlProps) =
200
206
 
201
207
  declare const PositionControl: () => React$1.JSX.Element;
202
208
 
209
+ declare const TransformRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
210
+
211
+ declare const PopoverContent: FC<PropsWithChildren<StackProps>>;
212
+
203
213
  declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
204
214
 
205
215
  type FontFamilySelectorProps = {
@@ -207,8 +217,9 @@ type FontFamilySelectorProps = {
207
217
  fontFamily: string | null;
208
218
  onFontFamilyChange: (fontFamily: string) => void;
209
219
  onClose: () => void;
220
+ sectionWidth: number;
210
221
  };
211
- declare const FontFamilySelector: ({ fontFamilies, fontFamily, onFontFamilyChange, onClose, }: FontFamilySelectorProps) => React$1.JSX.Element;
222
+ declare const FontFamilySelector: ({ fontFamilies, fontFamily, onFontFamilyChange, onClose, sectionWidth, }: FontFamilySelectorProps) => React$1.JSX.Element;
212
223
 
213
224
  type AnyComponentType = ComponentType<any>;
214
225
  declare const brandSymbol: unique symbol;
@@ -236,11 +247,11 @@ type PropContext<T extends PropValue, P extends PropType> = {
236
247
  value: T | null;
237
248
  propType: P;
238
249
  placeholder?: T;
239
- disabled?: boolean;
250
+ isDisabled?: (propType: PropType) => boolean | undefined;
240
251
  };
241
252
  declare const PropContext: React$1.Context<PropContext<PropValue, PropType> | null>;
242
253
  type PropProviderProps<T extends PropValue, P extends PropType> = React$1.PropsWithChildren<PropContext<T, P>>;
243
- declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, disabled, }: PropProviderProps<T, P>) => React$1.JSX.Element;
254
+ declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, isDisabled, }: PropProviderProps<T, P>) => React$1.JSX.Element;
244
255
 
245
256
  type PropKeyContextValue<T, P> = {
246
257
  bind: PropKey;
@@ -249,6 +260,7 @@ type PropKeyContextValue<T, P> = {
249
260
  propType: P;
250
261
  placeholder?: T;
251
262
  path: PropKey[];
263
+ isDisabled?: (propType: PropType) => boolean | undefined;
252
264
  disabled?: boolean;
253
265
  };
254
266
  type PropKeyProviderProps = React$1.PropsWithChildren<{
@@ -264,6 +276,7 @@ type UseBoundProp<TValue extends PropValue> = {
264
276
  placeholder?: TValue;
265
277
  path: PropKey[];
266
278
  restoreValue: () => void;
279
+ isDisabled?: (propType: PropType) => boolean | undefined;
267
280
  disabled?: boolean;
268
281
  };
269
282
  declare function useBoundProp<T extends PropValue = PropValue, P extends PropType = PropType>(): PropKeyContextValue<T, P>;
@@ -312,4 +325,4 @@ type UseInternalStateOptions<TValue> = {
312
325
  };
313
326
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
314
327
 
315
- export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, type FontCategory, FontFamilyControl, FontFamilySelector, GapControl, ImageControl, KeyValueControl, LinkControl, LinkedDimensionsControl, NumberControl, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
328
+ export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, FontFamilySelector, GapControl, ImageControl, KeyValueControl, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, type Unit, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React$1 from 'react';
2
- import { MutableRefObject, ReactNode, ComponentType, PropsWithChildren } from 'react';
2
+ import { RefObject, ReactNode, FC, PropsWithChildren, ComponentType } from 'react';
3
3
  import { StringPropValue, PropTypeUtil, PropValue, PropKey, SizePropValue, PropType, CreateOptions } from '@elementor/editor-props';
4
- import { UnstableColorFieldProps, ToggleButtonProps, StackProps, SxProps, Theme, FormLabelProps } from '@elementor/ui';
4
+ import { UnstableColorFieldProps, ToggleButtonProps, StackProps, FormLabelProps } from '@elementor/ui';
5
5
  import * as _elementor_locations from '@elementor/locations';
6
6
 
7
7
  type ImageControlProps = {
@@ -9,10 +9,9 @@ type ImageControlProps = {
9
9
  label: string;
10
10
  value: string;
11
11
  }[];
12
- resolutionLabel?: string;
13
12
  showMode?: 'all' | 'media' | 'sizes';
14
13
  };
15
- declare const ImageControl: ControlComponent<({ sizes, resolutionLabel, showMode }: ImageControlProps) => React$1.JSX.Element>;
14
+ declare const ImageControl: ControlComponent<({ sizes, showMode }: ImageControlProps) => React$1.JSX.Element>;
16
15
 
17
16
  declare const TextControl: ControlComponent<({ placeholder }: {
18
17
  placeholder?: string;
@@ -34,7 +33,7 @@ type SizeControlProps = {
34
33
  units?: Unit[];
35
34
  extendedOptions?: ExtendedOption[];
36
35
  disableCustom?: boolean;
37
- anchorRef?: MutableRefObject<HTMLElement | undefined>;
36
+ anchorRef?: RefObject<HTMLDivElement | null>;
38
37
  defaultUnit?: Unit;
39
38
  };
40
39
  declare const SizeControl: ControlComponent<(props: SizeControlProps) => React$1.JSX.Element>;
@@ -43,6 +42,8 @@ declare const StrokeControl: ControlComponent<() => React$1.JSX.Element>;
43
42
 
44
43
  declare const BoxShadowRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
45
44
 
45
+ declare const FilterRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
46
+
46
47
  type Props$5 = {
47
48
  options: Array<{
48
49
  label: string;
@@ -99,7 +100,7 @@ type ToggleControlProps<T extends PropValue> = {
99
100
  };
100
101
  declare const ToggleControl: ControlComponent<({ options, fullWidth, size, exclusive, maxItems, }: ToggleControlProps<StringPropValue["value"]>) => React$1.JSX.Element>;
101
102
 
102
- declare const NumberControl: ControlComponent<({ placeholder, max, min, step, shouldForceInt, }: {
103
+ declare const NumberControl: ControlComponent<({ placeholder: labelPlaceholder, max, min, step, shouldForceInt, }: {
103
104
  placeholder?: string;
104
105
  max?: number;
105
106
  min?: number;
@@ -135,8 +136,9 @@ type FontCategory = {
135
136
  };
136
137
  type FontFamilyControlProps = {
137
138
  fontFamilies: FontCategory[];
139
+ sectionWidth: number;
138
140
  };
139
- declare const FontFamilyControl: ControlComponent<({ fontFamilies }: FontFamilyControlProps) => React$1.JSX.Element>;
141
+ declare const FontFamilyControl: ControlComponent<({ fontFamilies, sectionWidth }: FontFamilyControlProps) => React$1.JSX.Element>;
140
142
 
141
143
  declare const UrlControl: ControlComponent<({ placeholder }: {
142
144
  placeholder?: string;
@@ -156,6 +158,7 @@ type Props$1 = ControlProps<{
156
158
  allowCustomValues?: boolean;
157
159
  minInputLength?: number;
158
160
  placeholder?: string;
161
+ label?: string;
159
162
  }>;
160
163
  declare const LinkControl: ControlComponent<(props: Props$1) => React$1.JSX.Element>;
161
164
 
@@ -182,16 +185,19 @@ type ChildControlConfig = {
182
185
 
183
186
  type RepeatableControlProps = {
184
187
  label: string;
188
+ repeaterLabel: string;
185
189
  childControlConfig: ChildControlConfig;
186
190
  showDuplicate?: boolean;
187
191
  showToggle?: boolean;
192
+ initialValues?: object;
193
+ patternLabel?: string;
194
+ placeholder?: string;
188
195
  };
189
- declare const RepeatableControl: ControlComponent<({ label, childControlConfig, showDuplicate, showToggle }: RepeatableControlProps) => React$1.JSX.Element | null>;
196
+ declare const RepeatableControl: ControlComponent<({ repeaterLabel, childControlConfig, showDuplicate, showToggle, initialValues, patternLabel, placeholder, }: RepeatableControlProps) => React$1.JSX.Element | null>;
190
197
 
191
198
  type KeyValueControlProps = {
192
199
  keyName?: string;
193
200
  valueName?: string;
194
- sx?: SxProps<Theme>;
195
201
  regexKey?: string;
196
202
  regexValue?: string;
197
203
  validationErrorMessage?: string;
@@ -200,6 +206,10 @@ declare const KeyValueControl: ControlComponent<(props?: KeyValueControlProps) =
200
206
 
201
207
  declare const PositionControl: () => React$1.JSX.Element;
202
208
 
209
+ declare const TransformRepeaterControl: ControlComponent<() => React$1.JSX.Element>;
210
+
211
+ declare const PopoverContent: FC<PropsWithChildren<StackProps>>;
212
+
203
213
  declare const ControlFormLabel: (props: FormLabelProps) => React$1.JSX.Element;
204
214
 
205
215
  type FontFamilySelectorProps = {
@@ -207,8 +217,9 @@ type FontFamilySelectorProps = {
207
217
  fontFamily: string | null;
208
218
  onFontFamilyChange: (fontFamily: string) => void;
209
219
  onClose: () => void;
220
+ sectionWidth: number;
210
221
  };
211
- declare const FontFamilySelector: ({ fontFamilies, fontFamily, onFontFamilyChange, onClose, }: FontFamilySelectorProps) => React$1.JSX.Element;
222
+ declare const FontFamilySelector: ({ fontFamilies, fontFamily, onFontFamilyChange, onClose, sectionWidth, }: FontFamilySelectorProps) => React$1.JSX.Element;
212
223
 
213
224
  type AnyComponentType = ComponentType<any>;
214
225
  declare const brandSymbol: unique symbol;
@@ -236,11 +247,11 @@ type PropContext<T extends PropValue, P extends PropType> = {
236
247
  value: T | null;
237
248
  propType: P;
238
249
  placeholder?: T;
239
- disabled?: boolean;
250
+ isDisabled?: (propType: PropType) => boolean | undefined;
240
251
  };
241
252
  declare const PropContext: React$1.Context<PropContext<PropValue, PropType> | null>;
242
253
  type PropProviderProps<T extends PropValue, P extends PropType> = React$1.PropsWithChildren<PropContext<T, P>>;
243
- declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, disabled, }: PropProviderProps<T, P>) => React$1.JSX.Element;
254
+ declare const PropProvider: <T extends PropValue, P extends PropType>({ children, value, setValue, propType, placeholder, isDisabled, }: PropProviderProps<T, P>) => React$1.JSX.Element;
244
255
 
245
256
  type PropKeyContextValue<T, P> = {
246
257
  bind: PropKey;
@@ -249,6 +260,7 @@ type PropKeyContextValue<T, P> = {
249
260
  propType: P;
250
261
  placeholder?: T;
251
262
  path: PropKey[];
263
+ isDisabled?: (propType: PropType) => boolean | undefined;
252
264
  disabled?: boolean;
253
265
  };
254
266
  type PropKeyProviderProps = React$1.PropsWithChildren<{
@@ -264,6 +276,7 @@ type UseBoundProp<TValue extends PropValue> = {
264
276
  placeholder?: TValue;
265
277
  path: PropKey[];
266
278
  restoreValue: () => void;
279
+ isDisabled?: (propType: PropType) => boolean | undefined;
267
280
  disabled?: boolean;
268
281
  };
269
282
  declare function useBoundProp<T extends PropValue = PropValue, P extends PropType = PropType>(): PropKeyContextValue<T, P>;
@@ -312,4 +325,4 @@ type UseInternalStateOptions<TValue> = {
312
325
  };
313
326
  declare const useSyncExternalState: <TValue>({ external, setExternal, persistWhen, fallback, }: UseInternalStateOptions<TValue>) => readonly [TValue, (setter: ((value: TValue) => TValue) | TValue) => void];
314
327
 
315
- export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, type FontCategory, FontFamilyControl, FontFamilySelector, GapControl, ImageControl, KeyValueControl, LinkControl, LinkedDimensionsControl, NumberControl, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };
328
+ export { AspectRatioControl, BackgroundControl, BoxShadowRepeaterControl, ColorControl, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent, ControlFormLabel, ControlReplacementsProvider, ControlToggleButtonGroup, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, FontFamilySelector, GapControl, ImageControl, KeyValueControl, LinkControl, LinkedDimensionsControl, NumberControl, PopoverContent, PositionControl, PropKeyProvider, PropProvider, type PropProviderProps, RepeatableControl, SelectControl, type SetValue, SizeControl, StrokeControl, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, type ToggleButtonGroupItem, ToggleControl, type ToggleControlProps, TransformRepeaterControl, type Unit, UrlControl, createControlReplacementsRegistry, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, useBoundProp, useControlActions, useSyncExternalState };