@elementor/editor-controls 4.1.0-773 → 4.1.0-775
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 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4289 -4261
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4364 -4333
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/linked-dimensions-control.tsx +46 -18
- package/src/controls/size-control/hooks/use-size-value.ts +4 -4
- package/src/controls/size-control/hooks/use-unit-sync.ts +13 -16
- package/src/controls/size-control/sync/get-units.ts +2 -2
- package/src/controls/size-control/types.ts +2 -2
- package/src/controls/size-control/unstable-size-control.tsx +22 -2
- package/src/controls/size-control/utils/is-extended-unit.ts +5 -5
- package/src/controls/size-control/utils/settings/get-prop-type-settings.ts +1 -1
- package/src/controls/size-control/utils/settings/get-size-units.ts +1 -1
- package/src/controls/size-control/utils/should-nullify-value.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -219,7 +219,7 @@ type Props$7 = {
|
|
|
219
219
|
extendedOptions?: ExtendedOption[];
|
|
220
220
|
min?: number;
|
|
221
221
|
};
|
|
222
|
-
declare const LinkedDimensionsControl: ({ label, isSiteRtl,
|
|
222
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$7) => React$1.JSX.Element;
|
|
223
223
|
|
|
224
224
|
type FontCategory = {
|
|
225
225
|
label: string;
|
|
@@ -490,8 +490,8 @@ declare function useBoundProp<TKey extends string, TValue extends PropValue>(pro
|
|
|
490
490
|
type LengthUnit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh' | 'ch';
|
|
491
491
|
type AngleUnit = 'deg' | 'rad' | 'grad' | 'turn';
|
|
492
492
|
type TimeUnit = 's' | 'ms';
|
|
493
|
-
type ExtendedSizeOption = 'auto' | 'custom';
|
|
494
493
|
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
494
|
+
type ExtendedSizeOption = 'auto' | 'custom';
|
|
495
495
|
type SizeUnit$1 = Unit | ExtendedSizeOption;
|
|
496
496
|
type SizeVariant = 'length' | 'angle' | 'time';
|
|
497
497
|
type SetSizeValue<T> = (value: T, options?: CreateOptions, meta?: SetValueMeta) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -219,7 +219,7 @@ type Props$7 = {
|
|
|
219
219
|
extendedOptions?: ExtendedOption[];
|
|
220
220
|
min?: number;
|
|
221
221
|
};
|
|
222
|
-
declare const LinkedDimensionsControl: ({ label, isSiteRtl,
|
|
222
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, min }: Props$7) => React$1.JSX.Element;
|
|
223
223
|
|
|
224
224
|
type FontCategory = {
|
|
225
225
|
label: string;
|
|
@@ -490,8 +490,8 @@ declare function useBoundProp<TKey extends string, TValue extends PropValue>(pro
|
|
|
490
490
|
type LengthUnit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh' | 'ch';
|
|
491
491
|
type AngleUnit = 'deg' | 'rad' | 'grad' | 'turn';
|
|
492
492
|
type TimeUnit = 's' | 'ms';
|
|
493
|
-
type ExtendedSizeOption = 'auto' | 'custom';
|
|
494
493
|
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
494
|
+
type ExtendedSizeOption = 'auto' | 'custom';
|
|
495
495
|
type SizeUnit$1 = Unit | ExtendedSizeOption;
|
|
496
496
|
type SizeVariant = 'length' | 'angle' | 'time';
|
|
497
497
|
type SetSizeValue<T> = (value: T, options?: CreateOptions, meta?: SetValueMeta) => void;
|