@elementor/editor-controls 4.3.0-964 → 4.3.0-966
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 +15 -21
- package/dist/index.d.ts +15 -21
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
- package/src/components/size-control/size-input.tsx +4 -4
- package/src/controls/size-control/types.ts +3 -10
- package/src/controls/size-control.tsx +8 -6
- package/src/utils/size-control.ts +15 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, SelectProps, UnstableColorFieldProps, StackProps, ToggleButtonProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
|
|
4
|
-
import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, QueryFilterKeyConfig, TransformablePropValue, PropType, CreateOptions
|
|
4
|
+
import { SizePropValue, StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, QueryFilterKeyConfig, TransformablePropValue, PropType, CreateOptions } from '@elementor/editor-props';
|
|
5
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
6
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
7
7
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
@@ -50,19 +50,19 @@ type Props$c = {
|
|
|
50
50
|
};
|
|
51
51
|
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions, rows, triggerPosition }: Props$c) => React$1.JSX.Element>;
|
|
52
52
|
|
|
53
|
+
type SizeUnit$1 = SizePropValue['value']['unit'];
|
|
54
|
+
type ExtendedOption = Extract<SizeUnit$1, 'auto' | 'custom'>;
|
|
55
|
+
type Unit = Exclude<SizeUnit$1, ExtendedOption>;
|
|
53
56
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
54
57
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
55
58
|
declare const timeUnits: readonly ["s", "ms"];
|
|
56
|
-
|
|
57
|
-
type
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
type ExtendedOption = (typeof defaultExtendedOptions)[number];
|
|
61
|
-
type Unit$1 = LengthUnit$1 | AngleUnit$1 | TimeUnit$1;
|
|
62
|
-
declare function isUnitExtendedOption(unit: Unit$1 | ExtendedOption): unit is ExtendedOption;
|
|
59
|
+
type LengthUnit = Extract<Unit, (typeof lengthUnits)[number] | 'fr'>;
|
|
60
|
+
type AngleUnit = (typeof angleUnits)[number];
|
|
61
|
+
type TimeUnit = (typeof timeUnits)[number];
|
|
62
|
+
declare function isUnitExtendedOption(unit: SizeUnit$1): unit is ExtendedOption;
|
|
63
63
|
|
|
64
64
|
type SizeVariant$1 = 'length' | 'angle' | 'time';
|
|
65
|
-
type UnitProps<T extends readonly Unit
|
|
65
|
+
type UnitProps<T extends readonly Unit[]> = {
|
|
66
66
|
units?: T;
|
|
67
67
|
defaultUnit?: T[number];
|
|
68
68
|
};
|
|
@@ -77,13 +77,13 @@ type BaseSizeControlProps = {
|
|
|
77
77
|
id?: string;
|
|
78
78
|
ariaLabel?: string;
|
|
79
79
|
};
|
|
80
|
-
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit
|
|
80
|
+
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit[]> & {
|
|
81
81
|
variant: 'length';
|
|
82
82
|
};
|
|
83
|
-
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit
|
|
83
|
+
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit[]> & {
|
|
84
84
|
variant: 'angle';
|
|
85
85
|
};
|
|
86
|
-
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit
|
|
86
|
+
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit[]> & {
|
|
87
87
|
variant: 'time';
|
|
88
88
|
};
|
|
89
89
|
type SizeControlProps = LengthSizeControlProps | AngleSizeControlProps | TimeSizeControlProps;
|
|
@@ -530,12 +530,6 @@ type EnhancedPropKeyContextValue<T, P> = PropKeyContextValue<T, P> & {
|
|
|
530
530
|
declare function useBoundProp<T extends PropValue = PropValue, P extends PropType = PropType>(): EnhancedPropKeyContextValue<T, P>;
|
|
531
531
|
declare function useBoundProp<TKey extends string, TValue extends PropValue>(propTypeUtil: PropTypeUtil<TKey, TValue>): UseBoundProp<TValue>;
|
|
532
532
|
|
|
533
|
-
type LengthUnit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh' | 'ch';
|
|
534
|
-
type AngleUnit = 'deg' | 'rad' | 'grad' | 'turn';
|
|
535
|
-
type TimeUnit = 's' | 'ms';
|
|
536
|
-
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
537
|
-
type ExtendedSizeOption = 'auto' | 'custom';
|
|
538
|
-
type SizeUnit$1 = Unit | ExtendedSizeOption;
|
|
539
533
|
type SizeVariant = 'length' | 'angle' | 'time';
|
|
540
534
|
type SetSizeValue<T> = (value: T, options?: CreateOptions, meta?: SetValueMeta) => void;
|
|
541
535
|
|
|
@@ -724,8 +718,8 @@ declare const InlineEditorToolbar: ({ editor, elementId, sx }: InlineEditorToolb
|
|
|
724
718
|
|
|
725
719
|
type Props$2<TValue> = {
|
|
726
720
|
value: TValue;
|
|
727
|
-
units: Unit
|
|
728
|
-
defaultUnit?: Unit
|
|
721
|
+
units: Unit[];
|
|
722
|
+
defaultUnit?: Unit;
|
|
729
723
|
onChange: (value: TValue) => void;
|
|
730
724
|
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
731
725
|
disabled?: boolean;
|
|
@@ -884,4 +878,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
884
878
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
885
879
|
};
|
|
886
880
|
|
|
887
|
-
export { type AdornmentComponent, type AngleUnit
|
|
881
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import { RefObject, ReactNode, FC, PropsWithChildren, ComponentProps, Dispatch, SetStateAction, ComponentType } from 'react';
|
|
3
3
|
import { SxProps, SelectProps, UnstableColorFieldProps, StackProps, ToggleButtonProps, PopupState, Theme, FormLabelProps, Grid, TextFieldProps } from '@elementor/ui';
|
|
4
|
-
import { StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, QueryFilterKeyConfig, TransformablePropValue, PropType, CreateOptions
|
|
4
|
+
import { SizePropValue, StringPropValue, PropTypeUtil, PropValue, PropKey, LinkPropValue, QueryFilterKeyConfig, TransformablePropValue, PropType, CreateOptions } from '@elementor/editor-props';
|
|
5
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
6
6
|
import { StyleDefinitionState } from '@elementor/editor-styles';
|
|
7
7
|
import { EditorProps, EditorView } from '@tiptap/pm/view';
|
|
@@ -50,19 +50,19 @@ type Props$c = {
|
|
|
50
50
|
};
|
|
51
51
|
declare const MentionTextAreaControl: ControlComponent$1<({ placeholder, ariaLabel, suggestions: allSuggestions, rows, triggerPosition }: Props$c) => React$1.JSX.Element>;
|
|
52
52
|
|
|
53
|
+
type SizeUnit$1 = SizePropValue['value']['unit'];
|
|
54
|
+
type ExtendedOption = Extract<SizeUnit$1, 'auto' | 'custom'>;
|
|
55
|
+
type Unit = Exclude<SizeUnit$1, ExtendedOption>;
|
|
53
56
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
54
57
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
55
58
|
declare const timeUnits: readonly ["s", "ms"];
|
|
56
|
-
|
|
57
|
-
type
|
|
58
|
-
type
|
|
59
|
-
|
|
60
|
-
type ExtendedOption = (typeof defaultExtendedOptions)[number];
|
|
61
|
-
type Unit$1 = LengthUnit$1 | AngleUnit$1 | TimeUnit$1;
|
|
62
|
-
declare function isUnitExtendedOption(unit: Unit$1 | ExtendedOption): unit is ExtendedOption;
|
|
59
|
+
type LengthUnit = Extract<Unit, (typeof lengthUnits)[number] | 'fr'>;
|
|
60
|
+
type AngleUnit = (typeof angleUnits)[number];
|
|
61
|
+
type TimeUnit = (typeof timeUnits)[number];
|
|
62
|
+
declare function isUnitExtendedOption(unit: SizeUnit$1): unit is ExtendedOption;
|
|
63
63
|
|
|
64
64
|
type SizeVariant$1 = 'length' | 'angle' | 'time';
|
|
65
|
-
type UnitProps<T extends readonly Unit
|
|
65
|
+
type UnitProps<T extends readonly Unit[]> = {
|
|
66
66
|
units?: T;
|
|
67
67
|
defaultUnit?: T[number];
|
|
68
68
|
};
|
|
@@ -77,13 +77,13 @@ type BaseSizeControlProps = {
|
|
|
77
77
|
id?: string;
|
|
78
78
|
ariaLabel?: string;
|
|
79
79
|
};
|
|
80
|
-
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit
|
|
80
|
+
type LengthSizeControlProps = BaseSizeControlProps & UnitProps<LengthUnit[]> & {
|
|
81
81
|
variant: 'length';
|
|
82
82
|
};
|
|
83
|
-
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit
|
|
83
|
+
type AngleSizeControlProps = BaseSizeControlProps & UnitProps<AngleUnit[]> & {
|
|
84
84
|
variant: 'angle';
|
|
85
85
|
};
|
|
86
|
-
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit
|
|
86
|
+
type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit[]> & {
|
|
87
87
|
variant: 'time';
|
|
88
88
|
};
|
|
89
89
|
type SizeControlProps = LengthSizeControlProps | AngleSizeControlProps | TimeSizeControlProps;
|
|
@@ -530,12 +530,6 @@ type EnhancedPropKeyContextValue<T, P> = PropKeyContextValue<T, P> & {
|
|
|
530
530
|
declare function useBoundProp<T extends PropValue = PropValue, P extends PropType = PropType>(): EnhancedPropKeyContextValue<T, P>;
|
|
531
531
|
declare function useBoundProp<TKey extends string, TValue extends PropValue>(propTypeUtil: PropTypeUtil<TKey, TValue>): UseBoundProp<TValue>;
|
|
532
532
|
|
|
533
|
-
type LengthUnit = 'px' | '%' | 'em' | 'rem' | 'vw' | 'vh' | 'ch';
|
|
534
|
-
type AngleUnit = 'deg' | 'rad' | 'grad' | 'turn';
|
|
535
|
-
type TimeUnit = 's' | 'ms';
|
|
536
|
-
type Unit = LengthUnit | AngleUnit | TimeUnit;
|
|
537
|
-
type ExtendedSizeOption = 'auto' | 'custom';
|
|
538
|
-
type SizeUnit$1 = Unit | ExtendedSizeOption;
|
|
539
533
|
type SizeVariant = 'length' | 'angle' | 'time';
|
|
540
534
|
type SetSizeValue<T> = (value: T, options?: CreateOptions, meta?: SetValueMeta) => void;
|
|
541
535
|
|
|
@@ -724,8 +718,8 @@ declare const InlineEditorToolbar: ({ editor, elementId, sx }: InlineEditorToolb
|
|
|
724
718
|
|
|
725
719
|
type Props$2<TValue> = {
|
|
726
720
|
value: TValue;
|
|
727
|
-
units: Unit
|
|
728
|
-
defaultUnit?: Unit
|
|
721
|
+
units: Unit[];
|
|
722
|
+
defaultUnit?: Unit;
|
|
729
723
|
onChange: (value: TValue) => void;
|
|
730
724
|
onBlur?: (event: React$1.FocusEvent<HTMLInputElement>) => void;
|
|
731
725
|
disabled?: boolean;
|
|
@@ -884,4 +878,4 @@ declare function useTypingBuffer(options?: UseTypingBufferOptions): {
|
|
|
884
878
|
startsWith: (haystack: string, needle: string) => boolean;
|
|
885
879
|
};
|
|
886
880
|
|
|
887
|
-
export { type AdornmentComponent, type AngleUnit
|
|
881
|
+
export { type AdornmentComponent, type AngleUnit, AspectRatioControl, AttachmentTypeControl, AttributesControl, BackgroundControl, BoxShadowRepeaterControl, ChipsControl, ClearIconButton, ColorControl, ControlActions, type ControlActionsItems, ControlActionsProvider, ControlAdornments, ControlAdornmentsProvider, type ControlComponent$1 as ControlComponent, ControlFormLabel, type ControlReplacement, ControlReplacementsProvider, ControlToggleButtonGroup, DateRangeControl, DateTimeControl, DisplayConditionsControl, EmailFormActionControl, type EqualUnequalItems, EqualUnequalSizesControl, type ExtendedOption, FilterRepeaterControl, type FontCategory, FontFamilyControl, GapControl, GridSpanControl, HtmlTagControl, ImageControl, InlineEditingControl, InlineEditor, InlineEditorToolbar, type InlineEditorToolbarProps, ItemSelector, type ItemsActionPayload, KeyValueControl, type LengthUnit, LinkControl, LinkedDimensionsControl, MentionTextAreaControl, NumberControl, NumberInput, PopoverContent, PopoverGridContainer, PositionControl, type PromotionTrackingData, PromotionTrigger, type PromotionTriggerRef, PropKeyProvider, PropProvider, type PropProviderProps, QueryChipsControl, QueryControl, QueryFilterRepeaterControl, RepeatableControl, Repeater, type RepeaterItem, SelectControl, SelectControlWrapper, type SetRepeaterValuesMeta, type SetValue, type SetValueMeta, SizeComponent, SizeControl, StrokeControl, StyledToggleButton, StyledToggleButtonGroup, SvgMediaControl, SwitchControl, TextAreaControl, TextControl, TimeRangeControl, TimeStringControl, type TimeUnit, type ToggleButtonGroupItem, ToggleButtonGroupUi, ToggleControl, type ToggleControlProps, TransformRepeaterControl, TransformSettingsControl, TransitionRepeaterControl, type Unit, UnstableSizeControl, UnstableSizeField, UrlControl, type UseTypingBufferOptions, type V4PromotionData, type V4PromotionKey, VideoMediaControl, createControl, createControlReplacementsRegistry, enqueueFont, getControlReplacements, injectIntoRepeaterItemActions, injectIntoRepeaterItemIcon, injectIntoRepeaterItemLabel, isUnitExtendedOption, registerControlReplacement, trackUpgradePromotionClick, trackViewPromotion, transitionProperties, transitionsItemsList, useBoundProp, useControlActions, useControlReplacement, useFontFamilies, useSyncExternalState, useTypingBuffer };
|
package/dist/index.js
CHANGED
|
@@ -902,11 +902,11 @@ function useTypingBuffer(options = {}) {
|
|
|
902
902
|
var lengthUnits = ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
903
903
|
var angleUnits = ["deg", "rad", "grad", "turn"];
|
|
904
904
|
var timeUnits = ["s", "ms"];
|
|
905
|
-
var defaultExtendedOptions = ["auto", "custom"];
|
|
906
905
|
var DEFAULT_UNIT = "px";
|
|
907
906
|
var DEFAULT_SIZE = NaN;
|
|
907
|
+
var extendedOptions = ["auto", "custom"];
|
|
908
908
|
function isUnitExtendedOption(unit) {
|
|
909
|
-
return
|
|
909
|
+
return extendedOptions.includes(unit);
|
|
910
910
|
}
|
|
911
911
|
|
|
912
912
|
// src/components/size-control/text-field-inner-selection.tsx
|
|
@@ -1236,13 +1236,13 @@ var TextFieldPopover = (props) => {
|
|
|
1236
1236
|
var import_react12 = require("react");
|
|
1237
1237
|
function useSizeExtendedOptions(options, disableCustom) {
|
|
1238
1238
|
return (0, import_react12.useMemo)(() => {
|
|
1239
|
-
const
|
|
1240
|
-
if (!disableCustom && !
|
|
1241
|
-
|
|
1239
|
+
const extendedOptions2 = [...options];
|
|
1240
|
+
if (!disableCustom && !extendedOptions2.includes("custom")) {
|
|
1241
|
+
extendedOptions2.push("custom");
|
|
1242
1242
|
} else if (options.includes("custom")) {
|
|
1243
|
-
|
|
1243
|
+
extendedOptions2.splice(extendedOptions2.indexOf("custom"), 1);
|
|
1244
1244
|
}
|
|
1245
|
-
return
|
|
1245
|
+
return extendedOptions2;
|
|
1246
1246
|
}, [options, disableCustom]);
|
|
1247
1247
|
}
|
|
1248
1248
|
|
|
@@ -1279,6 +1279,11 @@ var useSyncExternalState = ({
|
|
|
1279
1279
|
return [internal, setInternalValue];
|
|
1280
1280
|
};
|
|
1281
1281
|
|
|
1282
|
+
// src/controls/size-control/utils/settings/get-prop-type-settings.ts
|
|
1283
|
+
var getPropTypeSettings = (propType) => {
|
|
1284
|
+
return propType.settings;
|
|
1285
|
+
};
|
|
1286
|
+
|
|
1282
1287
|
// src/controls/size-control.tsx
|
|
1283
1288
|
var defaultSelectedUnit = {
|
|
1284
1289
|
length: "px",
|
|
@@ -1299,7 +1304,7 @@ var SizeControl = createControl(
|
|
|
1299
1304
|
placeholder,
|
|
1300
1305
|
startIcon,
|
|
1301
1306
|
anchorRef,
|
|
1302
|
-
extendedOptions,
|
|
1307
|
+
extendedOptions: extendedOptions2,
|
|
1303
1308
|
disableCustom,
|
|
1304
1309
|
min = 0,
|
|
1305
1310
|
enablePropTypeUnits = false,
|
|
@@ -1316,7 +1321,7 @@ var SizeControl = createControl(
|
|
|
1316
1321
|
} = useBoundProp(import_editor_props8.sizePropTypeUtil);
|
|
1317
1322
|
const actualDefaultUnit = defaultUnit ?? externalPlaceholder?.unit ?? defaultSelectedUnit[variant];
|
|
1318
1323
|
const activeBreakpoint = (0, import_editor_responsive.useActiveBreakpoint)();
|
|
1319
|
-
const actualExtendedOptions = useSizeExtendedOptions(
|
|
1324
|
+
const actualExtendedOptions = useSizeExtendedOptions(extendedOptions2 || [], disableCustom ?? false);
|
|
1320
1325
|
const actualUnits = resolveUnits(propType, enablePropTypeUnits, variant, units2, actualExtendedOptions);
|
|
1321
1326
|
const popupState = (0, import_ui14.usePopupState)({ variant: "popover" });
|
|
1322
1327
|
const memorizedExternalState = (0, import_react14.useMemo)(
|
|
@@ -1405,7 +1410,7 @@ function resolveUnits(propType, enablePropTypeUnits, variant, externalUnits, act
|
|
|
1405
1410
|
if (!enablePropTypeUnits) {
|
|
1406
1411
|
return [...externalUnits ?? fallback, ...actualExtendedOptions || []];
|
|
1407
1412
|
}
|
|
1408
|
-
return propType
|
|
1413
|
+
return getPropTypeSettings(propType)?.available_units ?? fallback;
|
|
1409
1414
|
}
|
|
1410
1415
|
function formatSize(size, unit) {
|
|
1411
1416
|
if (isUnitExtendedOption(unit)) {
|
|
@@ -3712,11 +3717,6 @@ var resolvePlaceholder = (placeholder) => {
|
|
|
3712
3717
|
return typeof size === "number" ? size.toString() : size;
|
|
3713
3718
|
};
|
|
3714
3719
|
|
|
3715
|
-
// src/controls/size-control/utils/settings/get-prop-type-settings.ts
|
|
3716
|
-
var getPropTypeSettings = (propType) => {
|
|
3717
|
-
return propType.settings;
|
|
3718
|
-
};
|
|
3719
|
-
|
|
3720
3720
|
// src/controls/size-control/utils/settings/get-default-unit.ts
|
|
3721
3721
|
var getDefaultUnit = (propType) => {
|
|
3722
3722
|
return getPropTypeSettings(propType)?.default_unit;
|