@elementor/editor-controls 3.35.0-348 → 3.35.0-350
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 +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +74 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +105 -128
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -15
- package/src/controls/linked-dimensions-control.tsx +71 -33
- package/src/controls/size-control.tsx +6 -50
package/dist/index.d.mts
CHANGED
|
@@ -25,11 +25,11 @@ declare const TextControl: ControlComponent$1<({ placeholder, error, inputValue,
|
|
|
25
25
|
ariaLabel?: string;
|
|
26
26
|
}) => React$1.JSX.Element>;
|
|
27
27
|
|
|
28
|
-
type Props$
|
|
28
|
+
type Props$8 = {
|
|
29
29
|
placeholder?: string;
|
|
30
30
|
ariaLabel?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$
|
|
32
|
+
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$8) => React$1.JSX.Element>;
|
|
33
33
|
|
|
34
34
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
35
35
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -68,7 +68,7 @@ type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit[]> & {
|
|
|
68
68
|
variant: 'time';
|
|
69
69
|
};
|
|
70
70
|
type SizeControlProps = LengthSizeControlProps | AngleSizeControlProps | TimeSizeControlProps;
|
|
71
|
-
declare const SizeControl: ControlComponent$1<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel,
|
|
71
|
+
declare const SizeControl: ControlComponent$1<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel, }: Omit<SizeControlProps, "variant"> & {
|
|
72
72
|
variant?: SizeVariant;
|
|
73
73
|
}) => React$1.JSX.Element>;
|
|
74
74
|
|
|
@@ -102,12 +102,12 @@ type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
|
|
|
102
102
|
};
|
|
103
103
|
declare const SelectControlWrapper: ControlComponent$1<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
|
|
104
104
|
|
|
105
|
-
type Props$
|
|
105
|
+
type Props$7 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
106
106
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
107
107
|
anchorEl?: HTMLElement | null;
|
|
108
108
|
id?: string;
|
|
109
109
|
};
|
|
110
|
-
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$
|
|
110
|
+
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$7) => React$1.JSX.Element>;
|
|
111
111
|
|
|
112
112
|
type RenderContentProps = {
|
|
113
113
|
size: ToggleButtonProps['size'];
|
|
@@ -120,7 +120,7 @@ type ToggleButtonGroupItem<TValue> = {
|
|
|
120
120
|
};
|
|
121
121
|
type ExclusiveValue<TValue> = TValue;
|
|
122
122
|
type NonExclusiveValue<TValue> = TValue[];
|
|
123
|
-
type Props$
|
|
123
|
+
type Props$6<TValue> = {
|
|
124
124
|
disabled?: boolean;
|
|
125
125
|
justify?: StackProps['justifyContent'];
|
|
126
126
|
size?: ToggleButtonProps['size'];
|
|
@@ -137,10 +137,10 @@ type Props$5<TValue> = {
|
|
|
137
137
|
value: ExclusiveValue<TValue>;
|
|
138
138
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
139
139
|
});
|
|
140
|
-
declare const ToggleButtonGroupUi: <TValue>(props: Props$
|
|
140
|
+
declare const ToggleButtonGroupUi: <TValue>(props: Props$6<TValue> & {
|
|
141
141
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
142
142
|
}) => React$1.ReactElement;
|
|
143
|
-
declare const ControlToggleButtonGroup: <TValue>(props: Props$
|
|
143
|
+
declare const ControlToggleButtonGroup: <TValue>(props: Props$6<TValue>) => React$1.JSX.Element;
|
|
144
144
|
|
|
145
145
|
type ToggleControlProps<T extends PropValue> = {
|
|
146
146
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -170,21 +170,22 @@ type Item$1 = {
|
|
|
170
170
|
bind: PropKey;
|
|
171
171
|
};
|
|
172
172
|
type EqualUnequalItems = [Item$1, Item$1, Item$1, Item$1];
|
|
173
|
-
type Props$
|
|
173
|
+
type Props$5<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
174
174
|
label: string;
|
|
175
175
|
icon: ReactNode;
|
|
176
176
|
tooltipLabel: string;
|
|
177
177
|
items: EqualUnequalItems;
|
|
178
178
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
179
179
|
};
|
|
180
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$
|
|
180
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$5<TMultiPropType, TPropValue>): React$1.JSX.Element;
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
type Props$4 = {
|
|
183
183
|
label: string;
|
|
184
184
|
isSiteRtl?: boolean;
|
|
185
185
|
extendedOptions?: ExtendedOption[];
|
|
186
186
|
min?: number;
|
|
187
|
-
}
|
|
187
|
+
};
|
|
188
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min }: Props$4) => React$1.JSX.Element;
|
|
188
189
|
|
|
189
190
|
type FontCategory = {
|
|
190
191
|
label: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,11 +25,11 @@ declare const TextControl: ControlComponent$1<({ placeholder, error, inputValue,
|
|
|
25
25
|
ariaLabel?: string;
|
|
26
26
|
}) => React$1.JSX.Element>;
|
|
27
27
|
|
|
28
|
-
type Props$
|
|
28
|
+
type Props$8 = {
|
|
29
29
|
placeholder?: string;
|
|
30
30
|
ariaLabel?: string;
|
|
31
31
|
};
|
|
32
|
-
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$
|
|
32
|
+
declare const TextAreaControl: ControlComponent$1<({ placeholder, ariaLabel }: Props$8) => React$1.JSX.Element>;
|
|
33
33
|
|
|
34
34
|
declare const lengthUnits: readonly ["px", "%", "em", "rem", "vw", "vh", "ch"];
|
|
35
35
|
declare const angleUnits: readonly ["deg", "rad", "grad", "turn"];
|
|
@@ -68,7 +68,7 @@ type TimeSizeControlProps = BaseSizeControlProps & UnitProps<TimeUnit[]> & {
|
|
|
68
68
|
variant: 'time';
|
|
69
69
|
};
|
|
70
70
|
type SizeControlProps = LengthSizeControlProps | AngleSizeControlProps | TimeSizeControlProps;
|
|
71
|
-
declare const SizeControl: ControlComponent$1<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel,
|
|
71
|
+
declare const SizeControl: ControlComponent$1<({ variant, defaultUnit, units, placeholder, startIcon, anchorRef, extendedOptions, disableCustom, min, enablePropTypeUnits, id, ariaLabel, }: Omit<SizeControlProps, "variant"> & {
|
|
72
72
|
variant?: SizeVariant;
|
|
73
73
|
}) => React$1.JSX.Element>;
|
|
74
74
|
|
|
@@ -102,12 +102,12 @@ type SelectControlWrapperProps = Parameters<typeof SelectControl>[0] & {
|
|
|
102
102
|
};
|
|
103
103
|
declare const SelectControlWrapper: ControlComponent$1<({ collectionId, options, ...props }: SelectControlWrapperProps) => React$1.JSX.Element>;
|
|
104
104
|
|
|
105
|
-
type Props$
|
|
105
|
+
type Props$7 = Partial<Omit<UnstableColorFieldProps, 'value' | 'onChange'>> & {
|
|
106
106
|
propTypeUtil?: PropTypeUtil<string, string>;
|
|
107
107
|
anchorEl?: HTMLElement | null;
|
|
108
108
|
id?: string;
|
|
109
109
|
};
|
|
110
|
-
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$
|
|
110
|
+
declare const ColorControl: ControlComponent$1<({ propTypeUtil, anchorEl, slotProps, id, ...props }: Props$7) => React$1.JSX.Element>;
|
|
111
111
|
|
|
112
112
|
type RenderContentProps = {
|
|
113
113
|
size: ToggleButtonProps['size'];
|
|
@@ -120,7 +120,7 @@ type ToggleButtonGroupItem<TValue> = {
|
|
|
120
120
|
};
|
|
121
121
|
type ExclusiveValue<TValue> = TValue;
|
|
122
122
|
type NonExclusiveValue<TValue> = TValue[];
|
|
123
|
-
type Props$
|
|
123
|
+
type Props$6<TValue> = {
|
|
124
124
|
disabled?: boolean;
|
|
125
125
|
justify?: StackProps['justifyContent'];
|
|
126
126
|
size?: ToggleButtonProps['size'];
|
|
@@ -137,10 +137,10 @@ type Props$5<TValue> = {
|
|
|
137
137
|
value: ExclusiveValue<TValue>;
|
|
138
138
|
onChange: (value: ExclusiveValue<TValue>) => void;
|
|
139
139
|
});
|
|
140
|
-
declare const ToggleButtonGroupUi: <TValue>(props: Props$
|
|
140
|
+
declare const ToggleButtonGroupUi: <TValue>(props: Props$6<TValue> & {
|
|
141
141
|
ref?: React$1.Ref<HTMLDivElement>;
|
|
142
142
|
}) => React$1.ReactElement;
|
|
143
|
-
declare const ControlToggleButtonGroup: <TValue>(props: Props$
|
|
143
|
+
declare const ControlToggleButtonGroup: <TValue>(props: Props$6<TValue>) => React$1.JSX.Element;
|
|
144
144
|
|
|
145
145
|
type ToggleControlProps<T extends PropValue> = {
|
|
146
146
|
options: Array<ToggleButtonGroupItem<T> & {
|
|
@@ -170,21 +170,22 @@ type Item$1 = {
|
|
|
170
170
|
bind: PropKey;
|
|
171
171
|
};
|
|
172
172
|
type EqualUnequalItems = [Item$1, Item$1, Item$1, Item$1];
|
|
173
|
-
type Props$
|
|
173
|
+
type Props$5<TMultiPropType extends string, TPropValue extends MultiSizePropValue> = {
|
|
174
174
|
label: string;
|
|
175
175
|
icon: ReactNode;
|
|
176
176
|
tooltipLabel: string;
|
|
177
177
|
items: EqualUnequalItems;
|
|
178
178
|
multiSizePropTypeUtil: PropTypeUtil<TMultiPropType, TPropValue>;
|
|
179
179
|
};
|
|
180
|
-
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$
|
|
180
|
+
declare function EqualUnequalSizesControl<TMultiPropType extends string, TPropValue extends MultiSizePropValue>({ label, icon, tooltipLabel, items, multiSizePropTypeUtil, }: Props$5<TMultiPropType, TPropValue>): React$1.JSX.Element;
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
type Props$4 = {
|
|
183
183
|
label: string;
|
|
184
184
|
isSiteRtl?: boolean;
|
|
185
185
|
extendedOptions?: ExtendedOption[];
|
|
186
186
|
min?: number;
|
|
187
|
-
}
|
|
187
|
+
};
|
|
188
|
+
declare const LinkedDimensionsControl: ({ label, isSiteRtl, extendedOptions, min }: Props$4) => React$1.JSX.Element;
|
|
188
189
|
|
|
189
190
|
type FontCategory = {
|
|
190
191
|
label: string;
|
package/dist/index.js
CHANGED
|
@@ -1036,8 +1036,7 @@ var SizeControl = createControl(
|
|
|
1036
1036
|
min = 0,
|
|
1037
1037
|
enablePropTypeUnits = false,
|
|
1038
1038
|
id,
|
|
1039
|
-
ariaLabel
|
|
1040
|
-
isRepeaterControl = false
|
|
1039
|
+
ariaLabel
|
|
1041
1040
|
}) => {
|
|
1042
1041
|
const {
|
|
1043
1042
|
value: sizeValue,
|
|
@@ -1095,38 +1094,13 @@ var SizeControl = createControl(
|
|
|
1095
1094
|
popupState.open(anchorRef?.current);
|
|
1096
1095
|
}
|
|
1097
1096
|
};
|
|
1098
|
-
const
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
state.unit === "custom" ? state.unit : actualDefaultUnit,
|
|
1102
|
-
"",
|
|
1103
|
-
state.custom
|
|
1104
|
-
);
|
|
1105
|
-
const currentUnitType = isUnitExtendedOption(state.unit) ? "custom" : "numeric";
|
|
1106
|
-
const mergedStates = {
|
|
1107
|
-
...state,
|
|
1108
|
-
unit: newState.unit ?? state.unit,
|
|
1109
|
-
[currentUnitType]: newState[currentUnitType]
|
|
1110
|
-
};
|
|
1111
|
-
if (mergedStates.unit !== "auto" && areStatesEqual(state, mergedStates)) {
|
|
1112
|
-
return;
|
|
1113
|
-
}
|
|
1114
|
-
if (state.unit === newState.unit) {
|
|
1115
|
-
setState(mergedStates);
|
|
1116
|
-
return;
|
|
1097
|
+
const maybeClosePopup = React18.useCallback(() => {
|
|
1098
|
+
if (popupState && popupState.isOpen) {
|
|
1099
|
+
popupState.close();
|
|
1117
1100
|
}
|
|
1118
|
-
|
|
1119
|
-
};
|
|
1101
|
+
}, [popupState]);
|
|
1120
1102
|
(0, import_react13.useEffect)(() => {
|
|
1121
|
-
|
|
1122
|
-
handleLinkedSizeControlChanges();
|
|
1123
|
-
}
|
|
1124
|
-
}, [sizeValue]);
|
|
1125
|
-
(0, import_react13.useEffect)(() => {
|
|
1126
|
-
const newState = createStateFromSizeProp(sizeValue, actualDefaultUnit, "", state.custom);
|
|
1127
|
-
if (activeBreakpoint && !areStatesEqual(newState, state)) {
|
|
1128
|
-
setState(newState);
|
|
1129
|
-
}
|
|
1103
|
+
maybeClosePopup();
|
|
1130
1104
|
}, [activeBreakpoint]);
|
|
1131
1105
|
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, /* @__PURE__ */ React18.createElement(
|
|
1132
1106
|
SizeInput,
|
|
@@ -1203,15 +1177,6 @@ function extractValueFromState(state, allowEmpty = false) {
|
|
|
1203
1177
|
unit
|
|
1204
1178
|
};
|
|
1205
1179
|
}
|
|
1206
|
-
function areStatesEqual(state1, state2) {
|
|
1207
|
-
if (state1.unit !== state2.unit || state1.custom !== state2.custom) {
|
|
1208
|
-
return false;
|
|
1209
|
-
}
|
|
1210
|
-
if (isUnitExtendedOption(state1.unit)) {
|
|
1211
|
-
return state1.custom === state2.custom;
|
|
1212
|
-
}
|
|
1213
|
-
return state1.numeric === state2.numeric || isNaN(state1.numeric) && isNaN(state2.numeric);
|
|
1214
|
-
}
|
|
1215
1180
|
|
|
1216
1181
|
// src/controls/stroke-control.tsx
|
|
1217
1182
|
var React21 = __toESM(require("react"));
|
|
@@ -2791,22 +2756,13 @@ var MultiSizeValueControl = ({ item, rowRef }) => {
|
|
|
2791
2756
|
var React57 = __toESM(require("react"));
|
|
2792
2757
|
var import_react29 = require("react");
|
|
2793
2758
|
var import_editor_props19 = require("@elementor/editor-props");
|
|
2759
|
+
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
2794
2760
|
var import_icons10 = require("@elementor/icons");
|
|
2795
2761
|
var import_ui42 = require("@elementor/ui");
|
|
2796
2762
|
var import_i18n18 = require("@wordpress/i18n");
|
|
2797
|
-
var LinkedDimensionsControl = ({
|
|
2798
|
-
label,
|
|
2799
|
-
isSiteRtl = false,
|
|
2800
|
-
extendedOptions,
|
|
2801
|
-
min
|
|
2802
|
-
}) => {
|
|
2803
|
-
const {
|
|
2804
|
-
value: sizeValue,
|
|
2805
|
-
setValue: setSizeValue,
|
|
2806
|
-
disabled: sizeDisabled,
|
|
2807
|
-
placeholder: sizePlaceholder
|
|
2808
|
-
} = useBoundProp(import_editor_props19.sizePropTypeUtil);
|
|
2763
|
+
var LinkedDimensionsControl = ({ label, isSiteRtl = false, extendedOptions, min }) => {
|
|
2809
2764
|
const gridRowRefs = [(0, import_react29.useRef)(null), (0, import_react29.useRef)(null)];
|
|
2765
|
+
const { disabled: sizeDisabled, placeholder: sizePlaceholder } = useBoundProp(import_editor_props19.sizePropTypeUtil);
|
|
2810
2766
|
const {
|
|
2811
2767
|
value: dimensionsValue,
|
|
2812
2768
|
setValue: setDimensionsValue,
|
|
@@ -2814,62 +2770,83 @@ var LinkedDimensionsControl = ({
|
|
|
2814
2770
|
placeholder: dimensionsPlaceholder,
|
|
2815
2771
|
disabled: dimensionsDisabled
|
|
2816
2772
|
} = useBoundProp(import_editor_props19.dimensionsPropTypeUtil);
|
|
2817
|
-
const
|
|
2773
|
+
const { value: masterValue, placeholder: masterPlaceholder, setValue: setMasterValue } = useBoundProp();
|
|
2818
2774
|
const hasPlaceholders = !!(sizePlaceholder || dimensionsPlaceholder);
|
|
2819
|
-
const
|
|
2775
|
+
const inferIsLinked = () => {
|
|
2776
|
+
if (import_editor_props19.dimensionsPropTypeUtil.isValid(masterValue)) {
|
|
2777
|
+
return false;
|
|
2778
|
+
}
|
|
2779
|
+
if (import_editor_props19.dimensionsPropTypeUtil.isValid(masterPlaceholder)) {
|
|
2780
|
+
return false;
|
|
2781
|
+
}
|
|
2782
|
+
return true;
|
|
2783
|
+
};
|
|
2784
|
+
const [isLinked, setIsLinked] = (0, import_react29.useState)(() => inferIsLinked());
|
|
2785
|
+
const activeBreakpoint = (0, import_editor_responsive2.useActiveBreakpoint)();
|
|
2786
|
+
(0, import_react29.useLayoutEffect)(() => {
|
|
2787
|
+
setIsLinked(inferIsLinked);
|
|
2788
|
+
}, [activeBreakpoint]);
|
|
2820
2789
|
const onLinkToggle = () => {
|
|
2821
|
-
|
|
2822
|
-
|
|
2790
|
+
setIsLinked((prev) => !prev);
|
|
2791
|
+
if (!import_editor_props19.dimensionsPropTypeUtil.isValid(masterValue)) {
|
|
2792
|
+
const value = masterValue ? masterValue : null;
|
|
2793
|
+
if (!value) {
|
|
2794
|
+
setMasterValue(null);
|
|
2795
|
+
return;
|
|
2796
|
+
}
|
|
2797
|
+
setMasterValue(
|
|
2798
|
+
import_editor_props19.dimensionsPropTypeUtil.create({
|
|
2799
|
+
"block-start": value,
|
|
2800
|
+
"block-end": value,
|
|
2801
|
+
"inline-start": value,
|
|
2802
|
+
"inline-end": value
|
|
2803
|
+
})
|
|
2804
|
+
);
|
|
2823
2805
|
return;
|
|
2824
2806
|
}
|
|
2825
|
-
const
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
});
|
|
2807
|
+
const sizeValue = dimensionsValue?.["block-start"] ?? dimensionsValue?.["inline-end"] ?? dimensionsValue?.["block-end"] ?? dimensionsValue?.["inline-start"] ?? null;
|
|
2808
|
+
if (!sizeValue) {
|
|
2809
|
+
setMasterValue(null);
|
|
2810
|
+
return;
|
|
2811
|
+
}
|
|
2812
|
+
setMasterValue(sizeValue);
|
|
2832
2813
|
};
|
|
2833
2814
|
const tooltipLabel = label.toLowerCase();
|
|
2834
2815
|
const LinkedIcon = isLinked ? import_icons10.LinkIcon : import_icons10.DetachIcon;
|
|
2835
2816
|
const linkedLabel = (0, import_i18n18.__)("Link %s", "elementor").replace("%s", tooltipLabel);
|
|
2836
2817
|
const unlinkedLabel = (0, import_i18n18.__)("Unlink %s", "elementor").replace("%s", tooltipLabel);
|
|
2837
2818
|
const disabled = sizeDisabled || dimensionsDisabled;
|
|
2838
|
-
|
|
2839
|
-
|
|
2819
|
+
const propProviderProps = {
|
|
2820
|
+
propType,
|
|
2821
|
+
value: dimensionsValue,
|
|
2822
|
+
placeholder: dimensionsPlaceholder,
|
|
2823
|
+
setValue: setDimensionsValue,
|
|
2824
|
+
isDisabled: () => dimensionsDisabled
|
|
2825
|
+
};
|
|
2826
|
+
return /* @__PURE__ */ React57.createElement(PropProvider, { ...propProviderProps }, /* @__PURE__ */ React57.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(ControlFormLabel, null, label), /* @__PURE__ */ React57.createElement(import_ui42.Tooltip, { title: isLinked ? unlinkedLabel : linkedLabel, placement: "top" }, /* @__PURE__ */ React57.createElement(
|
|
2827
|
+
StyledToggleButton,
|
|
2840
2828
|
{
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2829
|
+
"aria-label": isLinked ? unlinkedLabel : linkedLabel,
|
|
2830
|
+
size: "tiny",
|
|
2831
|
+
value: "check",
|
|
2832
|
+
selected: isLinked,
|
|
2833
|
+
sx: { marginLeft: "auto" },
|
|
2834
|
+
onChange: onLinkToggle,
|
|
2835
|
+
disabled,
|
|
2836
|
+
isPlaceholder: hasPlaceholders
|
|
2846
2837
|
},
|
|
2847
|
-
/* @__PURE__ */ React57.createElement(
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
/* @__PURE__ */ React57.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
2860
|
-
))),
|
|
2861
|
-
getCssDimensionProps(isSiteRtl).map((row, index) => /* @__PURE__ */ React57.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", key: index, ref: gridRowRefs[index] }, row.map(({ icon, ...props }) => /* @__PURE__ */ React57.createElement(import_ui42.Grid, { container: true, gap: 0.75, alignItems: "center", key: props.bind }, /* @__PURE__ */ React57.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(Label, { ...props })), /* @__PURE__ */ React57.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
2862
|
-
Control3,
|
|
2863
|
-
{
|
|
2864
|
-
bind: props.bind,
|
|
2865
|
-
startIcon: icon,
|
|
2866
|
-
isLinked,
|
|
2867
|
-
extendedOptions,
|
|
2868
|
-
anchorRef: gridRowRefs[index],
|
|
2869
|
-
min
|
|
2870
|
-
}
|
|
2871
|
-
))))))
|
|
2872
|
-
);
|
|
2838
|
+
/* @__PURE__ */ React57.createElement(LinkedIcon, { fontSize: "tiny" })
|
|
2839
|
+
))), getCssDimensionProps(isSiteRtl).map((row, index) => /* @__PURE__ */ React57.createElement(import_ui42.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", key: index, ref: gridRowRefs[index] }, row.map(({ icon, ...props }) => /* @__PURE__ */ React57.createElement(import_ui42.Grid, { container: true, gap: 0.75, alignItems: "center", key: props.bind }, /* @__PURE__ */ React57.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(Label, { ...props })), /* @__PURE__ */ React57.createElement(import_ui42.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React57.createElement(
|
|
2840
|
+
Control3,
|
|
2841
|
+
{
|
|
2842
|
+
bind: props.bind,
|
|
2843
|
+
startIcon: icon,
|
|
2844
|
+
isLinked,
|
|
2845
|
+
extendedOptions,
|
|
2846
|
+
anchorRef: gridRowRefs[index],
|
|
2847
|
+
min
|
|
2848
|
+
}
|
|
2849
|
+
)))))));
|
|
2873
2850
|
};
|
|
2874
2851
|
var Control3 = ({
|
|
2875
2852
|
bind,
|