@elementor/editor-editing-panel 4.3.0-1041 → 4.3.0-1043
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 +86 -11
- package/dist/index.d.ts +86 -11
- package/dist/index.js +1120 -1005
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1006 -902
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/css-classes/css-class-menu.tsx +29 -30
- package/src/components/style-sections-definition.ts +119 -0
- package/src/components/style-sections.tsx +22 -0
- package/src/components/style-states/pseudo-state-menu-items.tsx +44 -0
- package/src/components/style-states/pseudo-states.ts +17 -0
- package/src/components/style-states/use-pseudo-states.ts +18 -0
- package/src/components/style-tab.tsx +8 -123
- package/src/contexts/styles-inheritance-context.tsx +11 -1
- package/src/hooks/use-default-style-tag-from-preview.ts +14 -0
- package/src/index.ts +20 -3
package/dist/index.js
CHANGED
|
@@ -31,17 +31,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
33
|
BaseControl: () => Control,
|
|
34
|
+
ClassesPropProvider: () => ClassesPropProvider,
|
|
34
35
|
ControlLabel: () => ControlLabel,
|
|
35
36
|
ControlTypeContainer: () => ControlTypeContainer,
|
|
37
|
+
CreatableAutocomplete: () => CreatableAutocomplete,
|
|
36
38
|
CustomCssIndicator: () => CustomCssIndicator,
|
|
39
|
+
DEFAULT_PSEUDO_STATES: () => DEFAULT_PSEUDO_STATES,
|
|
37
40
|
EditingPanelTabs: () => EditingPanelTabs,
|
|
38
41
|
ElementProvider: () => ElementProvider,
|
|
39
42
|
FIELD_TYPE: () => FIELD_TYPE,
|
|
40
43
|
HISTORY_DEBOUNCE_WAIT: () => HISTORY_DEBOUNCE_WAIT,
|
|
44
|
+
PseudoStateMenuItems: () => PseudoStateMenuItems,
|
|
45
|
+
STYLE_SECTIONS: () => STYLE_SECTIONS,
|
|
46
|
+
STYLE_SECTION_NAMES: () => STYLE_SECTION_NAMES,
|
|
41
47
|
SectionContent: () => SectionContent,
|
|
48
|
+
SectionsList: () => SectionsList,
|
|
42
49
|
SettingsControl: () => SettingsControl,
|
|
43
50
|
SettingsField: () => SettingsField,
|
|
44
51
|
StyleIndicator: () => StyleIndicator,
|
|
52
|
+
StyleInheritanceProvider: () => StyleInheritanceProvider,
|
|
53
|
+
StyleProvider: () => StyleProvider,
|
|
54
|
+
StyleSections: () => StyleSections,
|
|
45
55
|
StyleTabSection: () => StyleTabSection,
|
|
46
56
|
StylesProviderCannotUpdatePropsError: () => StylesProviderCannotUpdatePropsError,
|
|
47
57
|
controlsRegistry: () => controlsRegistry,
|
|
@@ -73,231 +83,17 @@ __export(index_exports, {
|
|
|
73
83
|
useElement: () => useElement,
|
|
74
84
|
usePanelActions: () => usePanelActions,
|
|
75
85
|
usePanelStatus: () => usePanelStatus,
|
|
86
|
+
usePseudoStates: () => usePseudoStates,
|
|
76
87
|
useStateByElement: () => useStateByElement,
|
|
77
88
|
useStyle: () => useStyle,
|
|
78
89
|
useStylesRerender: () => useStylesRerender
|
|
79
90
|
});
|
|
80
91
|
module.exports = __toCommonJS(index_exports);
|
|
81
92
|
|
|
82
|
-
// src/components/
|
|
83
|
-
var React4 = __toESM(require("react"));
|
|
84
|
-
var import_editor_elements = require("@elementor/editor-elements");
|
|
85
|
-
var import_editor_props = require("@elementor/editor-props");
|
|
86
|
-
var import_locations = require("@elementor/locations");
|
|
87
|
-
var import_session = require("@elementor/session");
|
|
88
|
-
|
|
89
|
-
// src/contexts/classes-prop-context.tsx
|
|
93
|
+
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
90
94
|
var React = __toESM(require("react"));
|
|
91
|
-
var import_react = require("react");
|
|
92
|
-
var Context = (0, import_react.createContext)(null);
|
|
93
|
-
function ClassesPropProvider({ children, prop }) {
|
|
94
|
-
return /* @__PURE__ */ React.createElement(Context.Provider, { value: { prop } }, children);
|
|
95
|
-
}
|
|
96
|
-
function useClassesProp() {
|
|
97
|
-
const context = (0, import_react.useContext)(Context);
|
|
98
|
-
if (!context) {
|
|
99
|
-
throw new Error("useClassesProp must be used within a ClassesPropProvider");
|
|
100
|
-
}
|
|
101
|
-
return context.prop;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// src/contexts/element-context.tsx
|
|
105
|
-
var React2 = __toESM(require("react"));
|
|
106
|
-
var import_react2 = require("react");
|
|
107
|
-
var Context2 = (0, import_react2.createContext)(null);
|
|
108
|
-
function ElementProvider({ children, element, elementType, settings }) {
|
|
109
|
-
return /* @__PURE__ */ React2.createElement(Context2.Provider, { value: { element, elementType, settings } }, children);
|
|
110
|
-
}
|
|
111
|
-
function useElement() {
|
|
112
|
-
const context = (0, import_react2.useContext)(Context2);
|
|
113
|
-
if (!context) {
|
|
114
|
-
throw new Error("useElement must be used within a ElementProvider");
|
|
115
|
-
}
|
|
116
|
-
return context;
|
|
117
|
-
}
|
|
118
|
-
function usePanelElementSetting(propKey) {
|
|
119
|
-
const context = (0, import_react2.useContext)(Context2);
|
|
120
|
-
if (!context) {
|
|
121
|
-
throw new Error("usePanelElementSetting must be used within a ElementProvider");
|
|
122
|
-
}
|
|
123
|
-
return context.settings[propKey] ?? null;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
// src/contexts/style-context.tsx
|
|
127
|
-
var React3 = __toESM(require("react"));
|
|
128
95
|
var import_react3 = require("react");
|
|
129
|
-
var
|
|
130
|
-
|
|
131
|
-
// src/errors.ts
|
|
132
|
-
var import_utils = require("@elementor/utils");
|
|
133
|
-
var ControlTypeNotFoundError = (0, import_utils.createError)({
|
|
134
|
-
code: "control_type_not_found",
|
|
135
|
-
message: "Control type not found."
|
|
136
|
-
});
|
|
137
|
-
var ControlTypeAlreadyRegisteredError = (0, import_utils.createError)({
|
|
138
|
-
code: "control_type_already_registered",
|
|
139
|
-
message: "Control type is already registered."
|
|
140
|
-
});
|
|
141
|
-
var ControlTypeNotRegisteredError = (0, import_utils.createError)({
|
|
142
|
-
code: "control_type_not_registered",
|
|
143
|
-
message: "Control type is not registered."
|
|
144
|
-
});
|
|
145
|
-
var StylesProviderNotFoundError = (0, import_utils.createError)({
|
|
146
|
-
code: "provider_not_found",
|
|
147
|
-
message: "Styles provider not found."
|
|
148
|
-
});
|
|
149
|
-
var StylesProviderCannotUpdatePropsError = (0, import_utils.createError)({
|
|
150
|
-
code: "provider_cannot_update_props",
|
|
151
|
-
message: "Styles provider doesn't support updating props."
|
|
152
|
-
});
|
|
153
|
-
var StyleNotFoundUnderProviderError = (0, import_utils.createError)({
|
|
154
|
-
code: "style_not_found_under_provider",
|
|
155
|
-
message: "Style not found under the provider."
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
// src/contexts/style-context.tsx
|
|
159
|
-
var Context3 = (0, import_react3.createContext)(null);
|
|
160
|
-
function StyleProvider({ children, ...props }) {
|
|
161
|
-
const provider = props.id === null ? null : getProviderByStyleId(props.id);
|
|
162
|
-
const { userCan } = (0, import_editor_styles_repository.useUserStylesCapability)();
|
|
163
|
-
if (props.id && !provider) {
|
|
164
|
-
throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
|
|
165
|
-
}
|
|
166
|
-
const canEdit = userCan(provider?.getKey() ?? "").updateProps;
|
|
167
|
-
return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
|
|
168
|
-
}
|
|
169
|
-
function useStyle() {
|
|
170
|
-
const context = (0, import_react3.useContext)(Context3);
|
|
171
|
-
if (!context) {
|
|
172
|
-
throw new Error("useStyle must be used within a StyleProvider");
|
|
173
|
-
}
|
|
174
|
-
return context;
|
|
175
|
-
}
|
|
176
|
-
function getProviderByStyleId(styleId) {
|
|
177
|
-
const styleProvider = import_editor_styles_repository.stylesRepository.getProviders().find((provider) => {
|
|
178
|
-
return provider.actions.all().find((style) => style.id === styleId);
|
|
179
|
-
});
|
|
180
|
-
return styleProvider ?? null;
|
|
181
|
-
}
|
|
182
|
-
function useIsStyle() {
|
|
183
|
-
return !!(0, import_react3.useContext)(Context3);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
// src/components/css-classes/consts.ts
|
|
187
|
-
var PENDING_CLASS_RENAME_SESSION_KEY = "pending-class-rename-id";
|
|
188
|
-
|
|
189
|
-
// src/components/css-classes/css-class-convert-local.tsx
|
|
190
|
-
var { Slot: CssClassConvertSlot, inject: injectIntoCssClassConvert } = (0, import_locations.createLocation)();
|
|
191
|
-
var CssClassConvert = (props) => {
|
|
192
|
-
const { element } = useElement();
|
|
193
|
-
const elementId = element.id;
|
|
194
|
-
const currentClassesProp = useClassesProp();
|
|
195
|
-
const { setId: setActiveId } = useStyle();
|
|
196
|
-
const [, saveValue] = (0, import_session.useSessionStorage)(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
197
|
-
const successCallback = (newId) => {
|
|
198
|
-
if (!props.styleDef) {
|
|
199
|
-
throw new Error("Style definition is required for converting local class to global class.");
|
|
200
|
-
}
|
|
201
|
-
onConvert({
|
|
202
|
-
newId,
|
|
203
|
-
elementId,
|
|
204
|
-
classesProp: currentClassesProp,
|
|
205
|
-
styleDef: props.styleDef
|
|
206
|
-
});
|
|
207
|
-
saveValue(newId);
|
|
208
|
-
setActiveId(newId);
|
|
209
|
-
props.closeMenu();
|
|
210
|
-
};
|
|
211
|
-
return /* @__PURE__ */ React4.createElement(
|
|
212
|
-
CssClassConvertSlot,
|
|
213
|
-
{
|
|
214
|
-
canConvert: !!props.canConvert,
|
|
215
|
-
styleDef: props.styleDef,
|
|
216
|
-
successCallback
|
|
217
|
-
}
|
|
218
|
-
);
|
|
219
|
-
};
|
|
220
|
-
var onConvert = (opts) => {
|
|
221
|
-
const { newId, elementId, classesProp } = opts;
|
|
222
|
-
(0, import_editor_elements.deleteElementStyle)(elementId, opts.styleDef.id);
|
|
223
|
-
const currentUsedClasses = (0, import_editor_elements.getElementSetting)(elementId, classesProp) || { value: [] };
|
|
224
|
-
(0, import_editor_elements.updateElementSettings)({
|
|
225
|
-
id: elementId,
|
|
226
|
-
props: { [classesProp]: import_editor_props.classesPropTypeUtil.create([newId, ...currentUsedClasses.value]) },
|
|
227
|
-
withHistory: false
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
|
|
231
|
-
// src/components/control-label.tsx
|
|
232
|
-
var React5 = __toESM(require("react"));
|
|
233
|
-
var import_editor_controls = require("@elementor/editor-controls");
|
|
234
|
-
var import_icons = require("@elementor/icons");
|
|
235
|
-
var import_ui = require("@elementor/ui");
|
|
236
|
-
var ControlLabel = ({ children, infoTooltip }) => {
|
|
237
|
-
return /* @__PURE__ */ React5.createElement(import_ui.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React5.createElement(import_editor_controls.ControlFormLabel, null, children), infoTooltip && /* @__PURE__ */ React5.createElement(import_ui.Tooltip, { title: infoTooltip, placement: "top" }, /* @__PURE__ */ React5.createElement(import_icons.InfoCircleIcon, { fontSize: "tiny" })), /* @__PURE__ */ React5.createElement(import_editor_controls.ControlAdornments, null));
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
// src/components/css-classes/css-class-selector.tsx
|
|
241
|
-
var React13 = __toESM(require("react"));
|
|
242
|
-
var import_react10 = require("react");
|
|
243
|
-
var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
|
|
244
|
-
var import_editor_ui4 = require("@elementor/editor-ui");
|
|
245
|
-
var import_icons4 = require("@elementor/icons");
|
|
246
|
-
var import_locations2 = require("@elementor/locations");
|
|
247
|
-
var import_ui9 = require("@elementor/ui");
|
|
248
|
-
var import_i18n7 = require("@wordpress/i18n");
|
|
249
|
-
|
|
250
|
-
// src/utils/get-styles-provider-color.ts
|
|
251
|
-
var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
|
|
252
|
-
|
|
253
|
-
// src/provider-colors-registry.ts
|
|
254
|
-
var DEFAULT_COLORS = {
|
|
255
|
-
name: "default",
|
|
256
|
-
getThemeColor: null
|
|
257
|
-
};
|
|
258
|
-
var providerColorsRegistry = /* @__PURE__ */ new Map();
|
|
259
|
-
var registerStyleProviderToColors = (provider, colors) => {
|
|
260
|
-
providerColorsRegistry.set(provider, colors);
|
|
261
|
-
};
|
|
262
|
-
var getStyleProviderColors = (provider) => providerColorsRegistry.get(provider) ?? DEFAULT_COLORS;
|
|
263
|
-
|
|
264
|
-
// src/utils/get-styles-provider-color.ts
|
|
265
|
-
var getStylesProviderColorName = (provider) => {
|
|
266
|
-
if (!provider || provider === import_editor_styles_repository2.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
267
|
-
return "default";
|
|
268
|
-
}
|
|
269
|
-
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
270
|
-
return "accent";
|
|
271
|
-
}
|
|
272
|
-
return getStyleProviderColors(provider).name;
|
|
273
|
-
};
|
|
274
|
-
var getStylesProviderThemeColor = (provider) => {
|
|
275
|
-
if (!provider || provider === import_editor_styles_repository2.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
276
|
-
return null;
|
|
277
|
-
}
|
|
278
|
-
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
279
|
-
return (theme) => theme.palette.accent.main;
|
|
280
|
-
}
|
|
281
|
-
return getStyleProviderColors(provider).getThemeColor;
|
|
282
|
-
};
|
|
283
|
-
function getTempStylesProviderThemeColor(provider) {
|
|
284
|
-
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
285
|
-
return (theme) => theme.palette.primary.main;
|
|
286
|
-
}
|
|
287
|
-
return getStylesProviderThemeColor(provider);
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// src/utils/tracking/subscribe.ts
|
|
291
|
-
var import_editor_styles_repository3 = require("@elementor/editor-styles-repository");
|
|
292
|
-
var trackStyles = (provider, event, data) => {
|
|
293
|
-
const providerInstance = import_editor_styles_repository3.stylesRepository.getProviderByKey(provider);
|
|
294
|
-
providerInstance?.actions.tracking?.({ event, ...data });
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
298
|
-
var React6 = __toESM(require("react"));
|
|
299
|
-
var import_react6 = require("react");
|
|
300
|
-
var import_ui3 = require("@elementor/ui");
|
|
96
|
+
var import_ui2 = require("@elementor/ui");
|
|
301
97
|
|
|
302
98
|
// src/components/creatable-autocomplete/autocomplete-option-internal-properties.ts
|
|
303
99
|
function addGroupToOptions(options13, pluralEntityName) {
|
|
@@ -369,10 +165,10 @@ function useAutocompleteChange(params) {
|
|
|
369
165
|
}
|
|
370
166
|
|
|
371
167
|
// src/components/creatable-autocomplete/use-autocomplete-states.ts
|
|
372
|
-
var
|
|
168
|
+
var import_react = require("react");
|
|
373
169
|
function useInputState(validate) {
|
|
374
|
-
const [inputValue, setInputValue] = (0,
|
|
375
|
-
const [error, setError] = (0,
|
|
170
|
+
const [inputValue, setInputValue] = (0, import_react.useState)("");
|
|
171
|
+
const [error, setError] = (0, import_react.useState)(null);
|
|
376
172
|
const handleInputChange = (event) => {
|
|
377
173
|
const { value } = event.target;
|
|
378
174
|
setInputValue(value);
|
|
@@ -406,17 +202,17 @@ function useInputState(validate) {
|
|
|
406
202
|
};
|
|
407
203
|
}
|
|
408
204
|
function useOpenState(initialOpen = false) {
|
|
409
|
-
const [open, setOpen] = (0,
|
|
205
|
+
const [open, setOpen] = (0, import_react.useState)(initialOpen);
|
|
410
206
|
const openDropdown = () => setOpen(true);
|
|
411
207
|
const closeDropdown = () => setOpen(false);
|
|
412
208
|
return { open, openDropdown, closeDropdown };
|
|
413
209
|
}
|
|
414
210
|
|
|
415
211
|
// src/components/creatable-autocomplete/use-create-option.ts
|
|
416
|
-
var
|
|
212
|
+
var import_react2 = require("react");
|
|
417
213
|
function useCreateOption(params) {
|
|
418
214
|
const { onCreate, validate, setInputValue, setError, closeDropdown } = params;
|
|
419
|
-
const [loading, setLoading] = (0,
|
|
215
|
+
const [loading, setLoading] = (0, import_react2.useState)(false);
|
|
420
216
|
if (!onCreate) {
|
|
421
217
|
return { createOption: null, loading: false };
|
|
422
218
|
}
|
|
@@ -443,14 +239,14 @@ function useCreateOption(params) {
|
|
|
443
239
|
}
|
|
444
240
|
|
|
445
241
|
// src/components/creatable-autocomplete/use-filter-options.ts
|
|
446
|
-
var
|
|
242
|
+
var import_ui = require("@elementor/ui");
|
|
447
243
|
var STRIP_NON_CLASS_CHARS = /[^a-zA-Z0-9_-]/g;
|
|
448
244
|
function normalizeClassSearch(value) {
|
|
449
245
|
return value.replace(STRIP_NON_CLASS_CHARS, "").toLowerCase();
|
|
450
246
|
}
|
|
451
247
|
function useFilterOptions(parameters) {
|
|
452
248
|
const { options: options13, selected, onCreate, entityName } = parameters;
|
|
453
|
-
const filter = (0,
|
|
249
|
+
const filter = (0, import_ui.createFilterOptions)({
|
|
454
250
|
matchFrom: "any"
|
|
455
251
|
});
|
|
456
252
|
const filterOptions = (optionList, params) => {
|
|
@@ -477,7 +273,7 @@ function useFilterOptions(parameters) {
|
|
|
477
273
|
|
|
478
274
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
479
275
|
var MIN_INPUT_LENGTH = 2;
|
|
480
|
-
var CreatableAutocomplete =
|
|
276
|
+
var CreatableAutocomplete = React.forwardRef(CreatableAutocompleteInner);
|
|
481
277
|
function CreatableAutocompleteInner({
|
|
482
278
|
selected,
|
|
483
279
|
options: options13,
|
|
@@ -492,7 +288,7 @@ function CreatableAutocompleteInner({
|
|
|
492
288
|
const { inputValue, setInputValue, error, setError, inputHandlers } = useInputState(validate);
|
|
493
289
|
const { open, openDropdown, closeDropdown } = useOpenState(props.open);
|
|
494
290
|
const { createOption, loading } = useCreateOption({ onCreate, validate, setInputValue, setError, closeDropdown });
|
|
495
|
-
const [internalOptions, internalSelected] = (0,
|
|
291
|
+
const [internalOptions, internalSelected] = (0, import_react3.useMemo)(
|
|
496
292
|
() => [options13, selected].map((optionsArr) => addGroupToOptions(optionsArr, entityName?.plural)),
|
|
497
293
|
[options13, selected, entityName?.plural]
|
|
498
294
|
);
|
|
@@ -506,12 +302,12 @@ function CreatableAutocompleteInner({
|
|
|
506
302
|
const filterOptions = useFilterOptions({ options: options13, selected, onCreate, entityName });
|
|
507
303
|
const isCreatable = Boolean(onCreate);
|
|
508
304
|
const freeSolo = isCreatable || inputValue.length < MIN_INPUT_LENGTH || void 0;
|
|
509
|
-
return /* @__PURE__ */
|
|
510
|
-
|
|
305
|
+
return /* @__PURE__ */ React.createElement(
|
|
306
|
+
import_ui2.Autocomplete,
|
|
511
307
|
{
|
|
512
308
|
renderTags: (tagValue, getTagProps) => {
|
|
513
|
-
return tagValue.map((option, index) => /* @__PURE__ */
|
|
514
|
-
|
|
309
|
+
return tagValue.map((option, index) => /* @__PURE__ */ React.createElement(
|
|
310
|
+
import_ui2.Chip,
|
|
515
311
|
{
|
|
516
312
|
size: "tiny",
|
|
517
313
|
...getTagProps({ index }),
|
|
@@ -536,12 +332,12 @@ function CreatableAutocompleteInner({
|
|
|
536
332
|
disableCloseOnSelect: true,
|
|
537
333
|
value: internalSelected,
|
|
538
334
|
options: internalOptions,
|
|
539
|
-
ListboxComponent: error ?
|
|
540
|
-
renderGroup: (params) => /* @__PURE__ */
|
|
335
|
+
ListboxComponent: error ? React.forwardRef((_, errorTextRef) => /* @__PURE__ */ React.createElement(ErrorText, { ref: errorTextRef, error })) : void 0,
|
|
336
|
+
renderGroup: (params) => /* @__PURE__ */ React.createElement(Group, { ...params }),
|
|
541
337
|
inputValue,
|
|
542
338
|
renderInput: (params) => {
|
|
543
|
-
return /* @__PURE__ */
|
|
544
|
-
|
|
339
|
+
return /* @__PURE__ */ React.createElement(
|
|
340
|
+
import_ui2.TextField,
|
|
545
341
|
{
|
|
546
342
|
...params,
|
|
547
343
|
error: Boolean(error),
|
|
@@ -568,7 +364,7 @@ function CreatableAutocompleteInner({
|
|
|
568
364
|
groupBy: (option) => option._group ?? "",
|
|
569
365
|
renderOption: (optionProps, option) => {
|
|
570
366
|
const { _group, label } = option;
|
|
571
|
-
return /* @__PURE__ */
|
|
367
|
+
return /* @__PURE__ */ React.createElement(
|
|
572
368
|
"li",
|
|
573
369
|
{
|
|
574
370
|
...optionProps,
|
|
@@ -594,37 +390,252 @@ function CreatableAutocompleteInner({
|
|
|
594
390
|
}
|
|
595
391
|
);
|
|
596
392
|
}
|
|
597
|
-
var Group = (params) => {
|
|
598
|
-
const id = `combobox-group-${(0,
|
|
599
|
-
return /* @__PURE__ */
|
|
393
|
+
var Group = (params) => {
|
|
394
|
+
const id = `combobox-group-${(0, import_react3.useId)().replace(/:/g, "_")}`;
|
|
395
|
+
return /* @__PURE__ */ React.createElement(StyledGroup, { role: "group", "aria-labelledby": id }, /* @__PURE__ */ React.createElement(StyledGroupHeader, { id }, " ", params.group), /* @__PURE__ */ React.createElement(StyledGroupItems, { role: "listbox" }, params.children));
|
|
396
|
+
};
|
|
397
|
+
var ErrorText = React.forwardRef(({ error = "error" }, ref) => {
|
|
398
|
+
return /* @__PURE__ */ React.createElement(
|
|
399
|
+
import_ui2.Box,
|
|
400
|
+
{
|
|
401
|
+
ref,
|
|
402
|
+
sx: (theme) => ({
|
|
403
|
+
padding: theme.spacing(2)
|
|
404
|
+
})
|
|
405
|
+
},
|
|
406
|
+
/* @__PURE__ */ React.createElement(import_ui2.Typography, { variant: "caption", sx: { color: "error.main", display: "inline-block" } }, error)
|
|
407
|
+
);
|
|
408
|
+
});
|
|
409
|
+
var StyledGroup = (0, import_ui2.styled)("li")`
|
|
410
|
+
&:not( :last-of-type ) {
|
|
411
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
|
|
412
|
+
}
|
|
413
|
+
`;
|
|
414
|
+
var StyledGroupHeader = (0, import_ui2.styled)(import_ui2.Box)(({ theme }) => ({
|
|
415
|
+
position: "sticky",
|
|
416
|
+
top: "-8px",
|
|
417
|
+
padding: theme.spacing(1, 2),
|
|
418
|
+
color: theme.palette.text.tertiary,
|
|
419
|
+
backgroundColor: theme.palette.primary.contrastText
|
|
420
|
+
}));
|
|
421
|
+
var StyledGroupItems = (0, import_ui2.styled)("ul")`
|
|
422
|
+
padding: 0;
|
|
423
|
+
`;
|
|
424
|
+
|
|
425
|
+
// src/components/css-classes/css-class-convert-local.tsx
|
|
426
|
+
var React5 = __toESM(require("react"));
|
|
427
|
+
var import_editor_elements = require("@elementor/editor-elements");
|
|
428
|
+
var import_editor_props = require("@elementor/editor-props");
|
|
429
|
+
var import_locations = require("@elementor/locations");
|
|
430
|
+
var import_session = require("@elementor/session");
|
|
431
|
+
|
|
432
|
+
// src/contexts/classes-prop-context.tsx
|
|
433
|
+
var React2 = __toESM(require("react"));
|
|
434
|
+
var import_react4 = require("react");
|
|
435
|
+
var Context = (0, import_react4.createContext)(null);
|
|
436
|
+
function ClassesPropProvider({ children, prop }) {
|
|
437
|
+
return /* @__PURE__ */ React2.createElement(Context.Provider, { value: { prop } }, children);
|
|
438
|
+
}
|
|
439
|
+
function useClassesProp() {
|
|
440
|
+
const context = (0, import_react4.useContext)(Context);
|
|
441
|
+
if (!context) {
|
|
442
|
+
throw new Error("useClassesProp must be used within a ClassesPropProvider");
|
|
443
|
+
}
|
|
444
|
+
return context.prop;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
// src/contexts/element-context.tsx
|
|
448
|
+
var React3 = __toESM(require("react"));
|
|
449
|
+
var import_react5 = require("react");
|
|
450
|
+
var Context2 = (0, import_react5.createContext)(null);
|
|
451
|
+
function ElementProvider({ children, element, elementType, settings }) {
|
|
452
|
+
return /* @__PURE__ */ React3.createElement(Context2.Provider, { value: { element, elementType, settings } }, children);
|
|
453
|
+
}
|
|
454
|
+
function useElement() {
|
|
455
|
+
const context = (0, import_react5.useContext)(Context2);
|
|
456
|
+
if (!context) {
|
|
457
|
+
throw new Error("useElement must be used within a ElementProvider");
|
|
458
|
+
}
|
|
459
|
+
return context;
|
|
460
|
+
}
|
|
461
|
+
function usePanelElementSetting(propKey) {
|
|
462
|
+
const context = (0, import_react5.useContext)(Context2);
|
|
463
|
+
if (!context) {
|
|
464
|
+
throw new Error("usePanelElementSetting must be used within a ElementProvider");
|
|
465
|
+
}
|
|
466
|
+
return context.settings[propKey] ?? null;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
// src/contexts/style-context.tsx
|
|
470
|
+
var React4 = __toESM(require("react"));
|
|
471
|
+
var import_react6 = require("react");
|
|
472
|
+
var import_editor_styles_repository = require("@elementor/editor-styles-repository");
|
|
473
|
+
|
|
474
|
+
// src/errors.ts
|
|
475
|
+
var import_utils = require("@elementor/utils");
|
|
476
|
+
var ControlTypeNotFoundError = (0, import_utils.createError)({
|
|
477
|
+
code: "control_type_not_found",
|
|
478
|
+
message: "Control type not found."
|
|
479
|
+
});
|
|
480
|
+
var ControlTypeAlreadyRegisteredError = (0, import_utils.createError)({
|
|
481
|
+
code: "control_type_already_registered",
|
|
482
|
+
message: "Control type is already registered."
|
|
483
|
+
});
|
|
484
|
+
var ControlTypeNotRegisteredError = (0, import_utils.createError)({
|
|
485
|
+
code: "control_type_not_registered",
|
|
486
|
+
message: "Control type is not registered."
|
|
487
|
+
});
|
|
488
|
+
var StylesProviderNotFoundError = (0, import_utils.createError)({
|
|
489
|
+
code: "provider_not_found",
|
|
490
|
+
message: "Styles provider not found."
|
|
491
|
+
});
|
|
492
|
+
var StylesProviderCannotUpdatePropsError = (0, import_utils.createError)({
|
|
493
|
+
code: "provider_cannot_update_props",
|
|
494
|
+
message: "Styles provider doesn't support updating props."
|
|
495
|
+
});
|
|
496
|
+
var StyleNotFoundUnderProviderError = (0, import_utils.createError)({
|
|
497
|
+
code: "style_not_found_under_provider",
|
|
498
|
+
message: "Style not found under the provider."
|
|
499
|
+
});
|
|
500
|
+
|
|
501
|
+
// src/contexts/style-context.tsx
|
|
502
|
+
var Context3 = (0, import_react6.createContext)(null);
|
|
503
|
+
function StyleProvider({ children, ...props }) {
|
|
504
|
+
const provider = props.id === null ? null : getProviderByStyleId(props.id);
|
|
505
|
+
const { userCan } = (0, import_editor_styles_repository.useUserStylesCapability)();
|
|
506
|
+
if (props.id && !provider) {
|
|
507
|
+
throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
|
|
508
|
+
}
|
|
509
|
+
const canEdit = userCan(provider?.getKey() ?? "").updateProps;
|
|
510
|
+
return /* @__PURE__ */ React4.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
|
|
511
|
+
}
|
|
512
|
+
function useStyle() {
|
|
513
|
+
const context = (0, import_react6.useContext)(Context3);
|
|
514
|
+
if (!context) {
|
|
515
|
+
throw new Error("useStyle must be used within a StyleProvider");
|
|
516
|
+
}
|
|
517
|
+
return context;
|
|
518
|
+
}
|
|
519
|
+
function getProviderByStyleId(styleId) {
|
|
520
|
+
const styleProvider = import_editor_styles_repository.stylesRepository.getProviders().find((provider) => {
|
|
521
|
+
return provider.actions.all().find((style) => style.id === styleId);
|
|
522
|
+
});
|
|
523
|
+
return styleProvider ?? null;
|
|
524
|
+
}
|
|
525
|
+
function useIsStyle() {
|
|
526
|
+
return !!(0, import_react6.useContext)(Context3);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// src/components/css-classes/consts.ts
|
|
530
|
+
var PENDING_CLASS_RENAME_SESSION_KEY = "pending-class-rename-id";
|
|
531
|
+
|
|
532
|
+
// src/components/css-classes/css-class-convert-local.tsx
|
|
533
|
+
var { Slot: CssClassConvertSlot, inject: injectIntoCssClassConvert } = (0, import_locations.createLocation)();
|
|
534
|
+
var CssClassConvert = (props) => {
|
|
535
|
+
const { element } = useElement();
|
|
536
|
+
const elementId = element.id;
|
|
537
|
+
const currentClassesProp = useClassesProp();
|
|
538
|
+
const { setId: setActiveId } = useStyle();
|
|
539
|
+
const [, saveValue] = (0, import_session.useSessionStorage)(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
540
|
+
const successCallback = (newId) => {
|
|
541
|
+
if (!props.styleDef) {
|
|
542
|
+
throw new Error("Style definition is required for converting local class to global class.");
|
|
543
|
+
}
|
|
544
|
+
onConvert({
|
|
545
|
+
newId,
|
|
546
|
+
elementId,
|
|
547
|
+
classesProp: currentClassesProp,
|
|
548
|
+
styleDef: props.styleDef
|
|
549
|
+
});
|
|
550
|
+
saveValue(newId);
|
|
551
|
+
setActiveId(newId);
|
|
552
|
+
props.closeMenu();
|
|
553
|
+
};
|
|
554
|
+
return /* @__PURE__ */ React5.createElement(
|
|
555
|
+
CssClassConvertSlot,
|
|
556
|
+
{
|
|
557
|
+
canConvert: !!props.canConvert,
|
|
558
|
+
styleDef: props.styleDef,
|
|
559
|
+
successCallback
|
|
560
|
+
}
|
|
561
|
+
);
|
|
562
|
+
};
|
|
563
|
+
var onConvert = (opts) => {
|
|
564
|
+
const { newId, elementId, classesProp } = opts;
|
|
565
|
+
(0, import_editor_elements.deleteElementStyle)(elementId, opts.styleDef.id);
|
|
566
|
+
const currentUsedClasses = (0, import_editor_elements.getElementSetting)(elementId, classesProp) || { value: [] };
|
|
567
|
+
(0, import_editor_elements.updateElementSettings)({
|
|
568
|
+
id: elementId,
|
|
569
|
+
props: { [classesProp]: import_editor_props.classesPropTypeUtil.create([newId, ...currentUsedClasses.value]) },
|
|
570
|
+
withHistory: false
|
|
571
|
+
});
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
// src/components/control-label.tsx
|
|
575
|
+
var React6 = __toESM(require("react"));
|
|
576
|
+
var import_editor_controls = require("@elementor/editor-controls");
|
|
577
|
+
var import_icons = require("@elementor/icons");
|
|
578
|
+
var import_ui3 = require("@elementor/ui");
|
|
579
|
+
var ControlLabel = ({ children, infoTooltip }) => {
|
|
580
|
+
return /* @__PURE__ */ React6.createElement(import_ui3.Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React6.createElement(import_editor_controls.ControlFormLabel, null, children), infoTooltip && /* @__PURE__ */ React6.createElement(import_ui3.Tooltip, { title: infoTooltip, placement: "top" }, /* @__PURE__ */ React6.createElement(import_icons.InfoCircleIcon, { fontSize: "tiny" })), /* @__PURE__ */ React6.createElement(import_editor_controls.ControlAdornments, null));
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
// src/components/css-classes/css-class-selector.tsx
|
|
584
|
+
var React13 = __toESM(require("react"));
|
|
585
|
+
var import_react10 = require("react");
|
|
586
|
+
var import_editor_styles_repository11 = require("@elementor/editor-styles-repository");
|
|
587
|
+
var import_editor_ui4 = require("@elementor/editor-ui");
|
|
588
|
+
var import_icons4 = require("@elementor/icons");
|
|
589
|
+
var import_locations2 = require("@elementor/locations");
|
|
590
|
+
var import_ui9 = require("@elementor/ui");
|
|
591
|
+
var import_i18n8 = require("@wordpress/i18n");
|
|
592
|
+
|
|
593
|
+
// src/utils/get-styles-provider-color.ts
|
|
594
|
+
var import_editor_styles_repository2 = require("@elementor/editor-styles-repository");
|
|
595
|
+
|
|
596
|
+
// src/provider-colors-registry.ts
|
|
597
|
+
var DEFAULT_COLORS = {
|
|
598
|
+
name: "default",
|
|
599
|
+
getThemeColor: null
|
|
600
|
+
};
|
|
601
|
+
var providerColorsRegistry = /* @__PURE__ */ new Map();
|
|
602
|
+
var registerStyleProviderToColors = (provider, colors) => {
|
|
603
|
+
providerColorsRegistry.set(provider, colors);
|
|
604
|
+
};
|
|
605
|
+
var getStyleProviderColors = (provider) => providerColorsRegistry.get(provider) ?? DEFAULT_COLORS;
|
|
606
|
+
|
|
607
|
+
// src/utils/get-styles-provider-color.ts
|
|
608
|
+
var getStylesProviderColorName = (provider) => {
|
|
609
|
+
if (!provider || provider === import_editor_styles_repository2.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
610
|
+
return "default";
|
|
611
|
+
}
|
|
612
|
+
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
613
|
+
return "accent";
|
|
614
|
+
}
|
|
615
|
+
return getStyleProviderColors(provider).name;
|
|
616
|
+
};
|
|
617
|
+
var getStylesProviderThemeColor = (provider) => {
|
|
618
|
+
if (!provider || provider === import_editor_styles_repository2.ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
619
|
+
return null;
|
|
620
|
+
}
|
|
621
|
+
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
622
|
+
return (theme) => theme.palette.accent.main;
|
|
623
|
+
}
|
|
624
|
+
return getStyleProviderColors(provider).getThemeColor;
|
|
625
|
+
};
|
|
626
|
+
function getTempStylesProviderThemeColor(provider) {
|
|
627
|
+
if ((0, import_editor_styles_repository2.isElementsStylesProvider)(provider)) {
|
|
628
|
+
return (theme) => theme.palette.primary.main;
|
|
629
|
+
}
|
|
630
|
+
return getStylesProviderThemeColor(provider);
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
// src/utils/tracking/subscribe.ts
|
|
634
|
+
var import_editor_styles_repository3 = require("@elementor/editor-styles-repository");
|
|
635
|
+
var trackStyles = (provider, event, data) => {
|
|
636
|
+
const providerInstance = import_editor_styles_repository3.stylesRepository.getProviderByKey(provider);
|
|
637
|
+
providerInstance?.actions.tracking?.({ event, ...data });
|
|
600
638
|
};
|
|
601
|
-
var ErrorText = React6.forwardRef(({ error = "error" }, ref) => {
|
|
602
|
-
return /* @__PURE__ */ React6.createElement(
|
|
603
|
-
import_ui3.Box,
|
|
604
|
-
{
|
|
605
|
-
ref,
|
|
606
|
-
sx: (theme) => ({
|
|
607
|
-
padding: theme.spacing(2)
|
|
608
|
-
})
|
|
609
|
-
},
|
|
610
|
-
/* @__PURE__ */ React6.createElement(import_ui3.Typography, { variant: "caption", sx: { color: "error.main", display: "inline-block" } }, error)
|
|
611
|
-
);
|
|
612
|
-
});
|
|
613
|
-
var StyledGroup = (0, import_ui3.styled)("li")`
|
|
614
|
-
&:not( :last-of-type ) {
|
|
615
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
|
|
616
|
-
}
|
|
617
|
-
`;
|
|
618
|
-
var StyledGroupHeader = (0, import_ui3.styled)(import_ui3.Box)(({ theme }) => ({
|
|
619
|
-
position: "sticky",
|
|
620
|
-
top: "-8px",
|
|
621
|
-
padding: theme.spacing(1, 2),
|
|
622
|
-
color: theme.palette.text.tertiary,
|
|
623
|
-
backgroundColor: theme.palette.primary.contrastText
|
|
624
|
-
}));
|
|
625
|
-
var StyledGroupItems = (0, import_ui3.styled)("ul")`
|
|
626
|
-
padding: 0;
|
|
627
|
-
`;
|
|
628
639
|
|
|
629
640
|
// src/components/css-classes/css-class-item.tsx
|
|
630
641
|
var React11 = __toESM(require("react"));
|
|
@@ -635,7 +646,7 @@ var import_editor_ui3 = require("@elementor/editor-ui");
|
|
|
635
646
|
var import_icons2 = require("@elementor/icons");
|
|
636
647
|
var import_session3 = require("@elementor/session");
|
|
637
648
|
var import_ui7 = require("@elementor/ui");
|
|
638
|
-
var
|
|
649
|
+
var import_i18n6 = require("@wordpress/i18n");
|
|
639
650
|
|
|
640
651
|
// src/components/css-classes/css-class-context.tsx
|
|
641
652
|
var React7 = __toESM(require("react"));
|
|
@@ -658,7 +669,7 @@ var import_editor_props3 = require("@elementor/editor-props");
|
|
|
658
669
|
var import_editor_styles_repository8 = require("@elementor/editor-styles-repository");
|
|
659
670
|
var import_editor_ui2 = require("@elementor/editor-ui");
|
|
660
671
|
var import_ui6 = require("@elementor/ui");
|
|
661
|
-
var
|
|
672
|
+
var import_i18n5 = require("@wordpress/i18n");
|
|
662
673
|
|
|
663
674
|
// src/components/style-indicator.tsx
|
|
664
675
|
var import_ui4 = require("@elementor/ui");
|
|
@@ -677,19 +688,40 @@ var StyleIndicator = (0, import_ui4.styled)("div", {
|
|
|
677
688
|
}};
|
|
678
689
|
`;
|
|
679
690
|
|
|
691
|
+
// src/components/style-states/pseudo-states.ts
|
|
692
|
+
var import_i18n = require("@wordpress/i18n");
|
|
693
|
+
var DEFAULT_PSEUDO_STATES = [
|
|
694
|
+
{ key: "normal", value: null, label: (0, import_i18n.__)("normal", "elementor") },
|
|
695
|
+
{ key: "hover", value: "hover", label: (0, import_i18n.__)("hover", "elementor") },
|
|
696
|
+
{ key: "focus", value: "focus", label: (0, import_i18n.__)("focus", "elementor") },
|
|
697
|
+
{ key: "active", value: "active", label: (0, import_i18n.__)("active", "elementor") }
|
|
698
|
+
];
|
|
699
|
+
|
|
700
|
+
// src/components/style-states/use-pseudo-states.ts
|
|
701
|
+
function usePseudoStates() {
|
|
702
|
+
const { elementType } = useElement();
|
|
703
|
+
const { pseudoStates = [] } = elementType;
|
|
704
|
+
const additionalStates = pseudoStates.map(({ name, value }) => ({
|
|
705
|
+
key: value,
|
|
706
|
+
value,
|
|
707
|
+
label: name
|
|
708
|
+
}));
|
|
709
|
+
return [...DEFAULT_PSEUDO_STATES, ...additionalStates];
|
|
710
|
+
}
|
|
711
|
+
|
|
680
712
|
// src/components/css-classes/duplicate-class-menu-item.tsx
|
|
681
713
|
var React8 = __toESM(require("react"));
|
|
682
714
|
var import_editor_styles_repository6 = require("@elementor/editor-styles-repository");
|
|
683
715
|
var import_editor_ui = require("@elementor/editor-ui");
|
|
684
716
|
var import_session2 = require("@elementor/session");
|
|
685
|
-
var
|
|
717
|
+
var import_i18n3 = require("@wordpress/i18n");
|
|
686
718
|
|
|
687
719
|
// src/components/css-classes/use-apply-and-unapply-class.ts
|
|
688
720
|
var import_react8 = require("react");
|
|
689
721
|
var import_editor_elements3 = require("@elementor/editor-elements");
|
|
690
722
|
var import_editor_styles_repository5 = require("@elementor/editor-styles-repository");
|
|
691
723
|
var import_editor_v1_adapters = require("@elementor/editor-v1-adapters");
|
|
692
|
-
var
|
|
724
|
+
var import_i18n2 = require("@wordpress/i18n");
|
|
693
725
|
|
|
694
726
|
// src/apply-unapply-actions.ts
|
|
695
727
|
var import_editor_documents = require("@elementor/editor-documents");
|
|
@@ -753,7 +785,7 @@ function useUndoableApplyClass() {
|
|
|
753
785
|
{
|
|
754
786
|
title: (0, import_editor_elements3.getElementLabel)(element.id),
|
|
755
787
|
subtitle: ({ classLabel }) => {
|
|
756
|
-
return (0,
|
|
788
|
+
return (0, import_i18n2.__)(`class %s applied`, "elementor").replace("%s", classLabel);
|
|
757
789
|
}
|
|
758
790
|
}
|
|
759
791
|
);
|
|
@@ -780,7 +812,7 @@ function useUndoableUnapplyClass() {
|
|
|
780
812
|
{
|
|
781
813
|
title: (0, import_editor_elements3.getElementLabel)(element.id),
|
|
782
814
|
subtitle: ({ classLabel }) => {
|
|
783
|
-
return (0,
|
|
815
|
+
return (0, import_i18n2.__)(`class %s removed`, "elementor").replace("%s", classLabel);
|
|
784
816
|
}
|
|
785
817
|
}
|
|
786
818
|
);
|
|
@@ -817,9 +849,9 @@ function useCreateAndApplyClass() {
|
|
|
817
849
|
}
|
|
818
850
|
},
|
|
819
851
|
{
|
|
820
|
-
title: (0,
|
|
852
|
+
title: (0, import_i18n2.__)("Class", "elementor"),
|
|
821
853
|
subtitle: ({ classLabel }) => {
|
|
822
|
-
return (0,
|
|
854
|
+
return (0, import_i18n2.__)(`%s created`, "elementor").replace("%s", classLabel);
|
|
823
855
|
}
|
|
824
856
|
}
|
|
825
857
|
);
|
|
@@ -930,13 +962,13 @@ function DuplicateClassMenuItem({ closeMenu }) {
|
|
|
930
962
|
}
|
|
931
963
|
closeMenu();
|
|
932
964
|
};
|
|
933
|
-
return /* @__PURE__ */ React8.createElement(import_editor_ui.MenuListItem, { onClick: handleDuplicate }, (0,
|
|
965
|
+
return /* @__PURE__ */ React8.createElement(import_editor_ui.MenuListItem, { onClick: handleDuplicate }, (0, import_i18n3.__)("Duplicate", "elementor"));
|
|
934
966
|
}
|
|
935
967
|
|
|
936
968
|
// src/components/css-classes/local-class-sub-menu.tsx
|
|
937
969
|
var React9 = __toESM(require("react"));
|
|
938
970
|
var import_ui5 = require("@elementor/ui");
|
|
939
|
-
var
|
|
971
|
+
var import_i18n4 = require("@wordpress/i18n");
|
|
940
972
|
|
|
941
973
|
// src/components/css-classes/use-can-convert-local-class-to-global.ts
|
|
942
974
|
var import_editor_styles_repository7 = require("@elementor/editor-styles-repository");
|
|
@@ -958,26 +990,10 @@ var useCanConvertLocalClassToGlobal = () => {
|
|
|
958
990
|
// src/components/css-classes/local-class-sub-menu.tsx
|
|
959
991
|
var LocalClassSubMenu = (props) => {
|
|
960
992
|
const { canConvert, styleDef } = useCanConvertLocalClassToGlobal();
|
|
961
|
-
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(import_ui5.MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, (0,
|
|
993
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(import_ui5.MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, (0, import_i18n4.__)("Local Class", "elementor")), /* @__PURE__ */ React9.createElement(CssClassConvert, { canConvert, styleDef, closeMenu: props.popupState.close }));
|
|
962
994
|
};
|
|
963
995
|
|
|
964
996
|
// src/components/css-classes/css-class-menu.tsx
|
|
965
|
-
var DEFAULT_PSEUDO_STATES = [
|
|
966
|
-
{ key: "normal", value: null, label: (0, import_i18n4.__)("normal", "elementor") },
|
|
967
|
-
{ key: "hover", value: "hover", label: (0, import_i18n4.__)("hover", "elementor") },
|
|
968
|
-
{ key: "focus", value: "focus", label: (0, import_i18n4.__)("focus", "elementor") },
|
|
969
|
-
{ key: "active", value: "active", label: (0, import_i18n4.__)("active", "elementor") }
|
|
970
|
-
];
|
|
971
|
-
function usePseudoStates() {
|
|
972
|
-
const { elementType } = useElement();
|
|
973
|
-
const { pseudoStates = [] } = elementType;
|
|
974
|
-
const additionalStates = pseudoStates.map(({ name, value }) => ({
|
|
975
|
-
key: value,
|
|
976
|
-
value,
|
|
977
|
-
label: name
|
|
978
|
-
}));
|
|
979
|
-
return [...DEFAULT_PSEUDO_STATES, ...additionalStates];
|
|
980
|
-
}
|
|
981
997
|
function CssClassMenu({ popupState, anchorEl, fixed }) {
|
|
982
998
|
const { provider } = useCssClass();
|
|
983
999
|
const isLocalStyle2 = provider ? (0, import_editor_styles_repository8.isElementsStylesProvider)(provider) : true;
|
|
@@ -1003,8 +1019,23 @@ function CssClassMenu({ popupState, anchorEl, fixed }) {
|
|
|
1003
1019
|
disableAutoFocusItem: true
|
|
1004
1020
|
},
|
|
1005
1021
|
isLocalStyle2 && /* @__PURE__ */ React10.createElement(LocalClassSubMenu, { popupState }),
|
|
1006
|
-
getMenuItemsByProvider({
|
|
1007
|
-
|
|
1022
|
+
getMenuItemsByProvider({
|
|
1023
|
+
provider,
|
|
1024
|
+
closeMenu: popupState.close,
|
|
1025
|
+
fixed
|
|
1026
|
+
}),
|
|
1027
|
+
/* @__PURE__ */ React10.createElement(
|
|
1028
|
+
import_ui6.MenuSubheader,
|
|
1029
|
+
{
|
|
1030
|
+
sx: {
|
|
1031
|
+
typography: "caption",
|
|
1032
|
+
color: "text.secondary",
|
|
1033
|
+
pb: 0.5,
|
|
1034
|
+
pt: 1
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
(0, import_i18n5.__)("States", "elementor")
|
|
1038
|
+
),
|
|
1008
1039
|
pseudoStates.map((state) => {
|
|
1009
1040
|
return /* @__PURE__ */ React10.createElement(
|
|
1010
1041
|
StateMenuItem,
|
|
@@ -1024,8 +1055,19 @@ function ClassStatesMenu({ closeMenu }) {
|
|
|
1024
1055
|
if (!elementStates.length) {
|
|
1025
1056
|
return null;
|
|
1026
1057
|
}
|
|
1027
|
-
const customTitle = (0,
|
|
1028
|
-
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(import_ui6.Divider, null), /* @__PURE__ */ React10.createElement(
|
|
1058
|
+
const customTitle = (0, import_i18n5.__)("%s States", "elementor").replace("%s", elementTitle);
|
|
1059
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(import_ui6.Divider, null), /* @__PURE__ */ React10.createElement(
|
|
1060
|
+
import_ui6.MenuSubheader,
|
|
1061
|
+
{
|
|
1062
|
+
sx: {
|
|
1063
|
+
typography: "caption",
|
|
1064
|
+
color: "text.secondary",
|
|
1065
|
+
pb: 0.5,
|
|
1066
|
+
pt: 1
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
customTitle
|
|
1070
|
+
), elementStates.map((state) => {
|
|
1029
1071
|
return /* @__PURE__ */ React10.createElement(
|
|
1030
1072
|
StateMenuItem,
|
|
1031
1073
|
{
|
|
@@ -1039,10 +1081,10 @@ function ClassStatesMenu({ closeMenu }) {
|
|
|
1039
1081
|
}
|
|
1040
1082
|
var CLASS_STATES_MAP = {
|
|
1041
1083
|
selected: {
|
|
1042
|
-
label: (0,
|
|
1084
|
+
label: (0, import_i18n5.__)("selected", "elementor")
|
|
1043
1085
|
},
|
|
1044
1086
|
disabled: {
|
|
1045
|
-
label: (0,
|
|
1087
|
+
label: (0, import_i18n5.__)("disabled", "elementor")
|
|
1046
1088
|
}
|
|
1047
1089
|
};
|
|
1048
1090
|
function useElementStates() {
|
|
@@ -1091,7 +1133,13 @@ function getMenuItemsByProvider({
|
|
|
1091
1133
|
import_ui6.MenuSubheader,
|
|
1092
1134
|
{
|
|
1093
1135
|
key: "provider-label",
|
|
1094
|
-
sx: {
|
|
1136
|
+
sx: {
|
|
1137
|
+
typography: "caption",
|
|
1138
|
+
color: "text.secondary",
|
|
1139
|
+
pb: 0.5,
|
|
1140
|
+
pt: 1,
|
|
1141
|
+
textTransform: "capitalize"
|
|
1142
|
+
}
|
|
1095
1143
|
},
|
|
1096
1144
|
providerInstance?.labels?.singular
|
|
1097
1145
|
)
|
|
@@ -1135,12 +1183,12 @@ function StateMenuItem({ state, label, closeMenu, ...props }) {
|
|
|
1135
1183
|
import_editor_ui2.MenuItemInfotip,
|
|
1136
1184
|
{
|
|
1137
1185
|
showInfoTip: disabled,
|
|
1138
|
-
content: (0,
|
|
1186
|
+
content: (0, import_i18n5.__)("With your current role, you can only use existing states.", "elementor")
|
|
1139
1187
|
},
|
|
1140
1188
|
/* @__PURE__ */ React10.createElement(import_ui6.Stack, { gap: 0.75, direction: "row", alignItems: "center" }, isStyled && /* @__PURE__ */ React10.createElement(
|
|
1141
1189
|
StyleIndicator,
|
|
1142
1190
|
{
|
|
1143
|
-
"aria-label": (0,
|
|
1191
|
+
"aria-label": (0, import_i18n5.__)("Has style", "elementor"),
|
|
1144
1192
|
getColor: getTempStylesProviderThemeColor(provider ?? "")
|
|
1145
1193
|
}
|
|
1146
1194
|
), label)
|
|
@@ -1164,7 +1212,7 @@ function UnapplyClassMenuItem({ closeMenu, ...props }) {
|
|
|
1164
1212
|
closeMenu();
|
|
1165
1213
|
}
|
|
1166
1214
|
},
|
|
1167
|
-
(0,
|
|
1215
|
+
(0, import_i18n5.__)("Remove", "elementor")
|
|
1168
1216
|
) : null;
|
|
1169
1217
|
}
|
|
1170
1218
|
function RenameClassMenuItem({ closeMenu }) {
|
|
@@ -1187,12 +1235,12 @@ function RenameClassMenuItem({ closeMenu }) {
|
|
|
1187
1235
|
import_editor_ui2.MenuItemInfotip,
|
|
1188
1236
|
{
|
|
1189
1237
|
showInfoTip: !isAllowed,
|
|
1190
|
-
content: (0,
|
|
1238
|
+
content: (0, import_i18n5.__)(
|
|
1191
1239
|
"With your current role, you can use existing classes but can't modify them.",
|
|
1192
1240
|
"elementor"
|
|
1193
1241
|
)
|
|
1194
1242
|
},
|
|
1195
|
-
(0,
|
|
1243
|
+
(0, import_i18n5.__)("Rename", "elementor")
|
|
1196
1244
|
)
|
|
1197
1245
|
);
|
|
1198
1246
|
}
|
|
@@ -1292,7 +1340,7 @@ function CssClassItem(props) {
|
|
|
1292
1340
|
shape: "rounded",
|
|
1293
1341
|
color,
|
|
1294
1342
|
...(0, import_ui7.bindTrigger)(popupState),
|
|
1295
|
-
"aria-label": (0,
|
|
1343
|
+
"aria-label": (0, import_i18n6.__)("Open CSS Class Menu", "elementor"),
|
|
1296
1344
|
sx: (theme) => ({
|
|
1297
1345
|
borderRadius: `${theme.shape.borderRadius * 0.75}px`,
|
|
1298
1346
|
paddingRight: 0,
|
|
@@ -1315,7 +1363,7 @@ var validateLabel = (newLabel) => {
|
|
|
1315
1363
|
var React12 = __toESM(require("react"));
|
|
1316
1364
|
var import_icons3 = require("@elementor/icons");
|
|
1317
1365
|
var import_ui8 = require("@elementor/ui");
|
|
1318
|
-
var
|
|
1366
|
+
var import_i18n7 = require("@wordpress/i18n");
|
|
1319
1367
|
function MissingClassesAlert({ onDismiss }) {
|
|
1320
1368
|
return /* @__PURE__ */ React12.createElement(
|
|
1321
1369
|
import_ui8.Alert,
|
|
@@ -1326,8 +1374,8 @@ function MissingClassesAlert({ onDismiss }) {
|
|
|
1326
1374
|
icon: /* @__PURE__ */ React12.createElement(import_icons3.AlertTriangleFilledIcon, { fontSize: "tiny" }),
|
|
1327
1375
|
sx: { mt: 1 }
|
|
1328
1376
|
},
|
|
1329
|
-
/* @__PURE__ */ React12.createElement(import_ui8.AlertTitle, null, (0,
|
|
1330
|
-
/* @__PURE__ */ React12.createElement(import_ui8.Typography, { variant: "caption", textColor: "primary" }, (0,
|
|
1377
|
+
/* @__PURE__ */ React12.createElement(import_ui8.AlertTitle, null, (0, import_i18n7.__)("Some classes are missing", "elementor")),
|
|
1378
|
+
/* @__PURE__ */ React12.createElement(import_ui8.Typography, { variant: "caption", textColor: "primary" }, (0, import_i18n7.__)("A class was removed from your site and is no longer active on this element", "elementor"))
|
|
1331
1379
|
);
|
|
1332
1380
|
}
|
|
1333
1381
|
|
|
@@ -1354,7 +1402,7 @@ function openClassManagerPanel() {
|
|
|
1354
1402
|
);
|
|
1355
1403
|
}
|
|
1356
1404
|
var EMPTY_OPTION = {
|
|
1357
|
-
label: (0,
|
|
1405
|
+
label: (0, import_i18n8.__)("local", "elementor"),
|
|
1358
1406
|
value: null,
|
|
1359
1407
|
fixed: true,
|
|
1360
1408
|
color: getTempStylesProviderColorName("accent"),
|
|
@@ -1380,7 +1428,7 @@ function CssClassSelector() {
|
|
|
1380
1428
|
const clearMissingClasses = (0, import_react10.useCallback)(() => {
|
|
1381
1429
|
unapplyClasses(missingClassesIds);
|
|
1382
1430
|
}, [missingClassesIds, unapplyClasses]);
|
|
1383
|
-
return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0,
|
|
1431
|
+
return /* @__PURE__ */ React13.createElement(import_ui9.Stack, { p: 2 }, /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(import_ui9.FormLabel, { htmlFor: ID, size: "small" }, (0, import_i18n8.__)("Classes", "elementor")), /* @__PURE__ */ React13.createElement(import_ui9.Stack, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
|
|
1384
1432
|
import_editor_ui4.WarningInfotip,
|
|
1385
1433
|
{
|
|
1386
1434
|
open: Boolean(renameError),
|
|
@@ -1395,7 +1443,7 @@ function CssClassSelector() {
|
|
|
1395
1443
|
id: ID,
|
|
1396
1444
|
ref: autocompleteRef,
|
|
1397
1445
|
size: "tiny",
|
|
1398
|
-
placeholder: showPlaceholder ? (0,
|
|
1446
|
+
placeholder: showPlaceholder ? (0, import_i18n8.__)("Type class name", "elementor") : void 0,
|
|
1399
1447
|
options: options13,
|
|
1400
1448
|
selected: appliedOptions,
|
|
1401
1449
|
entityName,
|
|
@@ -1440,7 +1488,7 @@ function CssClassSelector() {
|
|
|
1440
1488
|
})
|
|
1441
1489
|
}
|
|
1442
1490
|
)
|
|
1443
|
-
), hasMissingClasses && /* @__PURE__ */ React13.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React13.createElement(import_editor_ui4.InfoAlert, { sx: { mt: 1 } }, (0,
|
|
1491
|
+
), hasMissingClasses && /* @__PURE__ */ React13.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React13.createElement(import_editor_ui4.InfoAlert, { sx: { mt: 1 } }, (0, import_i18n8.__)("With your current role, you can use existing classes but can\u2019t modify them.", "elementor")));
|
|
1444
1492
|
}
|
|
1445
1493
|
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ React13.createElement(import_ui9.Box, { sx: { py: 4 } }, /* @__PURE__ */ React13.createElement(
|
|
1446
1494
|
import_ui9.Stack,
|
|
@@ -1452,11 +1500,11 @@ var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ R
|
|
|
1452
1500
|
sx: { px: 2, m: "auto", maxWidth: "236px" }
|
|
1453
1501
|
},
|
|
1454
1502
|
/* @__PURE__ */ React13.createElement(import_icons4.ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1455
|
-
/* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
1503
|
+
/* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n8.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React13.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
1456
1504
|
children,
|
|
1457
|
-
/* @__PURE__ */ React13.createElement(import_ui9.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0,
|
|
1505
|
+
/* @__PURE__ */ React13.createElement(import_ui9.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n8.__)("Clear & try again", "elementor"))
|
|
1458
1506
|
));
|
|
1459
|
-
var EmptyState = (props) => /* @__PURE__ */ React13.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "caption", sx: { mb: 2 } }, (0,
|
|
1507
|
+
var EmptyState = (props) => /* @__PURE__ */ React13.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "caption", sx: { mb: 2 } }, (0, import_i18n8.__)("With your current role,", "elementor"), /* @__PURE__ */ React13.createElement("br", null), (0, import_i18n8.__)("you can only use existing classes.", "elementor")));
|
|
1460
1508
|
var LimitReachedEmptyState = ({
|
|
1461
1509
|
limitCount,
|
|
1462
1510
|
onClear
|
|
@@ -1474,9 +1522,9 @@ var LimitReachedEmptyState = ({
|
|
|
1474
1522
|
import_ui9.Typography,
|
|
1475
1523
|
{ align: "center", variant: "subtitle2" },
|
|
1476
1524
|
/* translators: %s is the maximum number of classes */
|
|
1477
|
-
(0,
|
|
1525
|
+
(0, import_i18n8.__)("Limit of %s classes reached", "elementor").replace("%s", String(limitCount))
|
|
1478
1526
|
),
|
|
1479
|
-
/* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "caption", component: "div" }, (0,
|
|
1527
|
+
/* @__PURE__ */ React13.createElement(import_ui9.Typography, { align: "center", variant: "caption", component: "div" }, (0, import_i18n8.__)("Remove a class to create a new one.", "elementor"), " ", /* @__PURE__ */ React13.createElement(
|
|
1480
1528
|
import_ui9.Link,
|
|
1481
1529
|
{
|
|
1482
1530
|
color: "inherit",
|
|
@@ -1485,7 +1533,7 @@ var LimitReachedEmptyState = ({
|
|
|
1485
1533
|
onClick: onClear,
|
|
1486
1534
|
sx: { verticalAlign: "baseline" }
|
|
1487
1535
|
},
|
|
1488
|
-
(0,
|
|
1536
|
+
(0, import_i18n8.__)("Clear", "elementor")
|
|
1489
1537
|
)),
|
|
1490
1538
|
/* @__PURE__ */ React13.createElement(
|
|
1491
1539
|
import_ui9.Button,
|
|
@@ -1498,7 +1546,7 @@ var LimitReachedEmptyState = ({
|
|
|
1498
1546
|
onClear();
|
|
1499
1547
|
}
|
|
1500
1548
|
},
|
|
1501
|
-
(0,
|
|
1549
|
+
(0, import_i18n8.__)("Class Manager", "elementor")
|
|
1502
1550
|
)
|
|
1503
1551
|
));
|
|
1504
1552
|
var updateClassByProvider = (provider, data) => {
|
|
@@ -1621,7 +1669,7 @@ var import_editor_styles2 = require("@elementor/editor-styles");
|
|
|
1621
1669
|
var import_editor_styles_repository12 = require("@elementor/editor-styles-repository");
|
|
1622
1670
|
var import_editor_styles_repository13 = require("@elementor/editor-styles-repository");
|
|
1623
1671
|
var import_editor_v1_adapters2 = require("@elementor/editor-v1-adapters");
|
|
1624
|
-
var
|
|
1672
|
+
var import_i18n9 = require("@wordpress/i18n");
|
|
1625
1673
|
|
|
1626
1674
|
// src/hooks/use-styles-rerender.ts
|
|
1627
1675
|
var import_react11 = require("react");
|
|
@@ -1734,21 +1782,21 @@ function getCurrentProps(style, meta) {
|
|
|
1734
1782
|
var defaultHistoryTitles = {
|
|
1735
1783
|
title: ({ provider }) => {
|
|
1736
1784
|
const providerLabel = provider.labels?.singular;
|
|
1737
|
-
return providerLabel ? capitalize(providerLabel) : (0,
|
|
1785
|
+
return providerLabel ? capitalize(providerLabel) : (0, import_i18n9.__)("Style", "elementor");
|
|
1738
1786
|
},
|
|
1739
1787
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1740
1788
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1741
1789
|
if (!styleLabel) {
|
|
1742
1790
|
throw new Error(`Style ${styleId} not found`);
|
|
1743
1791
|
}
|
|
1744
|
-
return (0,
|
|
1792
|
+
return (0, import_i18n9.__)(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1745
1793
|
}
|
|
1746
1794
|
};
|
|
1747
1795
|
var localStyleHistoryTitles = {
|
|
1748
1796
|
title: ({ elementId }) => (0, import_editor_elements4.getElementLabel)(elementId),
|
|
1749
1797
|
subtitle: ({ propDisplayName }) => (
|
|
1750
1798
|
// translators: %s is the name of the style property being edited
|
|
1751
|
-
(0,
|
|
1799
|
+
(0, import_i18n9.__)(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1752
1800
|
)
|
|
1753
1801
|
};
|
|
1754
1802
|
function capitalize(str) {
|
|
@@ -1937,9 +1985,9 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1937
1985
|
};
|
|
1938
1986
|
|
|
1939
1987
|
// src/components/editing-panel.tsx
|
|
1940
|
-
var
|
|
1988
|
+
var React92 = __toESM(require("react"));
|
|
1941
1989
|
var import_editor_controls55 = require("@elementor/editor-controls");
|
|
1942
|
-
var
|
|
1990
|
+
var import_editor_elements15 = require("@elementor/editor-elements");
|
|
1943
1991
|
var import_editor_panels = require("@elementor/editor-panels");
|
|
1944
1992
|
var import_editor_ui8 = require("@elementor/editor-ui");
|
|
1945
1993
|
var import_icons27 = require("@elementor/icons");
|
|
@@ -1947,7 +1995,7 @@ var import_locations5 = require("@elementor/locations");
|
|
|
1947
1995
|
var import_menus = require("@elementor/menus");
|
|
1948
1996
|
var import_session9 = require("@elementor/session");
|
|
1949
1997
|
var import_ui45 = require("@elementor/ui");
|
|
1950
|
-
var
|
|
1998
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
1951
1999
|
|
|
1952
2000
|
// src/editing-panel-replacement-registry.tsx
|
|
1953
2001
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1983,10 +2031,10 @@ var EditingPanelStickyPromotion = () => {
|
|
|
1983
2031
|
|
|
1984
2032
|
// src/components/editing-panel-tabs.tsx
|
|
1985
2033
|
var import_react37 = require("react");
|
|
1986
|
-
var
|
|
1987
|
-
var
|
|
2034
|
+
var React91 = __toESM(require("react"));
|
|
2035
|
+
var import_editor_elements14 = require("@elementor/editor-elements");
|
|
1988
2036
|
var import_ui44 = require("@elementor/ui");
|
|
1989
|
-
var
|
|
2037
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
1990
2038
|
|
|
1991
2039
|
// src/contexts/scroll-context.tsx
|
|
1992
2040
|
var React17 = __toESM(require("react"));
|
|
@@ -2499,7 +2547,7 @@ var import_editor_controls3 = require("@elementor/editor-controls");
|
|
|
2499
2547
|
var import_editor_documents2 = require("@elementor/editor-documents");
|
|
2500
2548
|
var import_editor_elements6 = require("@elementor/editor-elements");
|
|
2501
2549
|
var import_editor_v1_adapters4 = require("@elementor/editor-v1-adapters");
|
|
2502
|
-
var
|
|
2550
|
+
var import_i18n10 = require("@wordpress/i18n");
|
|
2503
2551
|
|
|
2504
2552
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2505
2553
|
var createTopLevelObjectType = ({ schema }) => {
|
|
@@ -2565,7 +2613,7 @@ function useUndoableUpdateElementProp({
|
|
|
2565
2613
|
{
|
|
2566
2614
|
title: (0, import_editor_elements6.getElementLabel)(elementId),
|
|
2567
2615
|
// translators: %s is the name of the property that was edited.
|
|
2568
|
-
subtitle: (0,
|
|
2616
|
+
subtitle: (0, import_i18n10.__)("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2569
2617
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2570
2618
|
}
|
|
2571
2619
|
);
|
|
@@ -2699,24 +2747,38 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2699
2747
|
}
|
|
2700
2748
|
|
|
2701
2749
|
// src/components/style-tab.tsx
|
|
2702
|
-
var
|
|
2750
|
+
var React90 = __toESM(require("react"));
|
|
2703
2751
|
var import_react36 = require("react");
|
|
2704
2752
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
2705
2753
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2706
2754
|
var import_locations4 = require("@elementor/locations");
|
|
2707
2755
|
var import_session8 = require("@elementor/session");
|
|
2708
2756
|
var import_ui43 = require("@elementor/ui");
|
|
2709
|
-
var import_i18n62 = require("@wordpress/i18n");
|
|
2710
2757
|
|
|
2711
2758
|
// src/contexts/styles-inheritance-context.tsx
|
|
2712
2759
|
var React26 = __toESM(require("react"));
|
|
2713
2760
|
var import_react19 = require("react");
|
|
2714
|
-
var
|
|
2761
|
+
var import_editor_elements8 = require("@elementor/editor-elements");
|
|
2715
2762
|
var import_editor_props9 = require("@elementor/editor-props");
|
|
2716
2763
|
var import_editor_responsive2 = require("@elementor/editor-responsive");
|
|
2717
2764
|
var import_editor_styles5 = require("@elementor/editor-styles");
|
|
2718
2765
|
var import_editor_styles_repository15 = require("@elementor/editor-styles-repository");
|
|
2719
2766
|
|
|
2767
|
+
// src/hooks/use-default-style-tag-from-preview.ts
|
|
2768
|
+
var import_editor_elements7 = require("@elementor/editor-elements");
|
|
2769
|
+
var import_editor_v1_adapters5 = require("@elementor/editor-v1-adapters");
|
|
2770
|
+
function useDefaultStyleTagFromPreview(elementId) {
|
|
2771
|
+
return (0, import_editor_v1_adapters5.__privateUseListenTo)(
|
|
2772
|
+
[
|
|
2773
|
+
(0, import_editor_v1_adapters5.windowEvent)("elementor/preview/atomic-widget/render"),
|
|
2774
|
+
(0, import_editor_v1_adapters5.commandEndEvent)("document/elements/settings"),
|
|
2775
|
+
(0, import_editor_v1_adapters5.commandEndEvent)("document/elements/set-settings"),
|
|
2776
|
+
(0, import_editor_v1_adapters5.commandEndEvent)("document/elements/select")
|
|
2777
|
+
],
|
|
2778
|
+
() => (0, import_editor_elements7.getDefaultStyleTagFromPreviewElement)(elementId)
|
|
2779
|
+
);
|
|
2780
|
+
}
|
|
2781
|
+
|
|
2720
2782
|
// src/styles-inheritance/create-styles-inheritance.ts
|
|
2721
2783
|
var import_editor_props8 = require("@elementor/editor-props");
|
|
2722
2784
|
|
|
@@ -2986,20 +3048,26 @@ function useInheritedValues(propKeys) {
|
|
|
2986
3048
|
var useAppliedStyles = () => {
|
|
2987
3049
|
const currentClassesProp = useClassesProp();
|
|
2988
3050
|
const baseStyles = useBaseStyles();
|
|
3051
|
+
const defaultTagStyleId = useDefaultTagStyleId();
|
|
2989
3052
|
useStylesRerender();
|
|
2990
3053
|
const classesProp = usePanelElementSetting(currentClassesProp);
|
|
2991
3054
|
const appliedStyles = import_editor_props9.classesPropTypeUtil.extract(classesProp) ?? [];
|
|
2992
|
-
|
|
3055
|
+
const applicableIds = [...baseStyles, ...appliedStyles, ...defaultTagStyleId ? [defaultTagStyleId] : []];
|
|
3056
|
+
return import_editor_styles_repository15.stylesRepository.all().filter((style) => applicableIds.includes(style.id));
|
|
2993
3057
|
};
|
|
2994
3058
|
var useBaseStyles = () => {
|
|
2995
3059
|
const { elementType } = useElement();
|
|
2996
|
-
const widgetsCache = (0,
|
|
3060
|
+
const widgetsCache = (0, import_editor_elements8.getWidgetsCache)();
|
|
2997
3061
|
const widgetCache = widgetsCache?.[elementType.key];
|
|
2998
3062
|
return Object.keys(widgetCache?.base_styles ?? {});
|
|
2999
3063
|
};
|
|
3064
|
+
var useDefaultTagStyleId = () => {
|
|
3065
|
+
const { element } = useElement();
|
|
3066
|
+
return useDefaultStyleTagFromPreview(element.id);
|
|
3067
|
+
};
|
|
3000
3068
|
|
|
3001
3069
|
// src/hooks/use-active-style-def-id.ts
|
|
3002
|
-
var
|
|
3070
|
+
var import_editor_elements9 = require("@elementor/editor-elements");
|
|
3003
3071
|
var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
|
|
3004
3072
|
function useActiveStyleDefId(classProp) {
|
|
3005
3073
|
const [activeStyledDefId, setActiveStyledDefId] = useStateByElement(
|
|
@@ -3021,7 +3089,7 @@ function useValidClassIds(appliedClassesIds) {
|
|
|
3021
3089
|
}
|
|
3022
3090
|
function useFirstAppliedClass(appliedClassesIds) {
|
|
3023
3091
|
const { element } = useElement();
|
|
3024
|
-
const stylesDefs = (0,
|
|
3092
|
+
const stylesDefs = (0, import_editor_elements9.getElementStyles)(element.id) ?? {};
|
|
3025
3093
|
return Object.values(stylesDefs).find((styleDef) => appliedClassesIds.includes(styleDef.id));
|
|
3026
3094
|
}
|
|
3027
3095
|
function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
@@ -3029,10 +3097,16 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3029
3097
|
return isClassApplied ? id : null;
|
|
3030
3098
|
}
|
|
3031
3099
|
|
|
3100
|
+
// src/components/style-sections.tsx
|
|
3101
|
+
var React89 = __toESM(require("react"));
|
|
3102
|
+
|
|
3103
|
+
// src/components/style-sections-definition.ts
|
|
3104
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
3105
|
+
|
|
3032
3106
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3033
3107
|
var React29 = __toESM(require("react"));
|
|
3034
3108
|
var import_editor_controls7 = require("@elementor/editor-controls");
|
|
3035
|
-
var
|
|
3109
|
+
var import_i18n11 = require("@wordpress/i18n");
|
|
3036
3110
|
|
|
3037
3111
|
// src/controls-registry/styles-field.tsx
|
|
3038
3112
|
var React27 = __toESM(require("react"));
|
|
@@ -3205,7 +3279,7 @@ var SectionContent = ({
|
|
|
3205
3279
|
}) => /* @__PURE__ */ React28.createElement(import_ui16.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3206
3280
|
|
|
3207
3281
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3208
|
-
var BACKGROUND_LABEL = (0,
|
|
3282
|
+
var BACKGROUND_LABEL = (0, import_i18n11.__)("Background", "elementor");
|
|
3209
3283
|
var BackgroundSection = () => {
|
|
3210
3284
|
return /* @__PURE__ */ React29.createElement(SectionContent, null, /* @__PURE__ */ React29.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React29.createElement(import_editor_controls7.BackgroundControl, null)));
|
|
3211
3285
|
};
|
|
@@ -3216,7 +3290,7 @@ var React36 = __toESM(require("react"));
|
|
|
3216
3290
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3217
3291
|
var React31 = __toESM(require("react"));
|
|
3218
3292
|
var import_editor_controls8 = require("@elementor/editor-controls");
|
|
3219
|
-
var
|
|
3293
|
+
var import_i18n12 = require("@wordpress/i18n");
|
|
3220
3294
|
|
|
3221
3295
|
// src/components/styles-field-layout.tsx
|
|
3222
3296
|
var React30 = __toESM(require("react"));
|
|
@@ -3244,7 +3318,7 @@ var Column = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
|
3244
3318
|
});
|
|
3245
3319
|
|
|
3246
3320
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3247
|
-
var BORDER_COLOR_LABEL = (0,
|
|
3321
|
+
var BORDER_COLOR_LABEL = (0, import_i18n12.__)("Border color", "elementor");
|
|
3248
3322
|
var BorderColorField = () => /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(import_editor_controls8.ColorControl, null)));
|
|
3249
3323
|
|
|
3250
3324
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
@@ -3253,14 +3327,14 @@ var import_editor_controls9 = require("@elementor/editor-controls");
|
|
|
3253
3327
|
var import_editor_props12 = require("@elementor/editor-props");
|
|
3254
3328
|
var import_icons5 = require("@elementor/icons");
|
|
3255
3329
|
var import_ui20 = require("@elementor/ui");
|
|
3256
|
-
var
|
|
3330
|
+
var import_i18n13 = require("@wordpress/i18n");
|
|
3257
3331
|
|
|
3258
3332
|
// src/hooks/use-direction.ts
|
|
3259
|
-
var
|
|
3333
|
+
var import_editor_v1_adapters6 = require("@elementor/editor-v1-adapters");
|
|
3260
3334
|
var import_ui18 = require("@elementor/ui");
|
|
3261
3335
|
function useDirection() {
|
|
3262
3336
|
const theme = (0, import_ui18.useTheme)();
|
|
3263
|
-
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!(0,
|
|
3337
|
+
const isUiRtl = "rtl" === theme.direction, isSiteRtl = !!(0, import_editor_v1_adapters6.getElementorFrontendConfig)()?.is_rtl;
|
|
3264
3338
|
return { isSiteRtl, isUiRtl };
|
|
3265
3339
|
}
|
|
3266
3340
|
|
|
@@ -3273,19 +3347,19 @@ var UiProviders = ({ children }) => {
|
|
|
3273
3347
|
};
|
|
3274
3348
|
|
|
3275
3349
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3276
|
-
var BORDER_RADIUS_LABEL = (0,
|
|
3350
|
+
var BORDER_RADIUS_LABEL = (0, import_i18n13.__)("Border radius", "elementor");
|
|
3277
3351
|
var StartStartIcon = (0, import_ui20.withDirection)(import_icons5.RadiusTopLeftIcon);
|
|
3278
3352
|
var StartEndIcon = (0, import_ui20.withDirection)(import_icons5.RadiusTopRightIcon);
|
|
3279
3353
|
var EndStartIcon = (0, import_ui20.withDirection)(import_icons5.RadiusBottomLeftIcon);
|
|
3280
3354
|
var EndEndIcon = (0, import_ui20.withDirection)(import_icons5.RadiusBottomRightIcon);
|
|
3281
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3282
|
-
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3283
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3284
|
-
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3285
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3286
|
-
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3287
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3288
|
-
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
3355
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Top right", "elementor") : (0, import_i18n13.__)("Top left", "elementor");
|
|
3356
|
+
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Border top right radius", "elementor") : (0, import_i18n13.__)("Border top left radius", "elementor");
|
|
3357
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Top left", "elementor") : (0, import_i18n13.__)("Top right", "elementor");
|
|
3358
|
+
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Border top left radius", "elementor") : (0, import_i18n13.__)("Border top right radius", "elementor");
|
|
3359
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Bottom right", "elementor") : (0, import_i18n13.__)("Bottom left", "elementor");
|
|
3360
|
+
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Border bottom right radius", "elementor") : (0, import_i18n13.__)("Border bottom left radius", "elementor");
|
|
3361
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Bottom left", "elementor") : (0, import_i18n13.__)("Bottom right", "elementor");
|
|
3362
|
+
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n13.__)("Border bottom left radius", "elementor") : (0, import_i18n13.__)("Border bottom right radius", "elementor");
|
|
3289
3363
|
var getCorners = (isSiteRtl) => [
|
|
3290
3364
|
{
|
|
3291
3365
|
label: getStartStartLabel(isSiteRtl),
|
|
@@ -3320,7 +3394,7 @@ var BorderRadiusField = () => {
|
|
|
3320
3394
|
items: getCorners(isSiteRtl),
|
|
3321
3395
|
label: BORDER_RADIUS_LABEL,
|
|
3322
3396
|
icon: /* @__PURE__ */ React33.createElement(import_icons5.BorderCornersIcon, { fontSize: "tiny" }),
|
|
3323
|
-
tooltipLabel: (0,
|
|
3397
|
+
tooltipLabel: (0, import_i18n13.__)("Adjust corners", "elementor"),
|
|
3324
3398
|
multiSizePropTypeUtil: import_editor_props12.borderRadiusPropTypeUtil
|
|
3325
3399
|
}
|
|
3326
3400
|
)));
|
|
@@ -3329,18 +3403,18 @@ var BorderRadiusField = () => {
|
|
|
3329
3403
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3330
3404
|
var React34 = __toESM(require("react"));
|
|
3331
3405
|
var import_editor_controls10 = require("@elementor/editor-controls");
|
|
3332
|
-
var
|
|
3333
|
-
var BORDER_TYPE_LABEL = (0,
|
|
3406
|
+
var import_i18n14 = require("@wordpress/i18n");
|
|
3407
|
+
var BORDER_TYPE_LABEL = (0, import_i18n14.__)("Border type", "elementor");
|
|
3334
3408
|
var borderStyles = [
|
|
3335
|
-
{ value: "none", label: (0,
|
|
3336
|
-
{ value: "solid", label: (0,
|
|
3337
|
-
{ value: "dashed", label: (0,
|
|
3338
|
-
{ value: "dotted", label: (0,
|
|
3339
|
-
{ value: "double", label: (0,
|
|
3340
|
-
{ value: "groove", label: (0,
|
|
3341
|
-
{ value: "ridge", label: (0,
|
|
3342
|
-
{ value: "inset", label: (0,
|
|
3343
|
-
{ value: "outset", label: (0,
|
|
3409
|
+
{ value: "none", label: (0, import_i18n14.__)("None", "elementor") },
|
|
3410
|
+
{ value: "solid", label: (0, import_i18n14.__)("Solid", "elementor") },
|
|
3411
|
+
{ value: "dashed", label: (0, import_i18n14.__)("Dashed", "elementor") },
|
|
3412
|
+
{ value: "dotted", label: (0, import_i18n14.__)("Dotted", "elementor") },
|
|
3413
|
+
{ value: "double", label: (0, import_i18n14.__)("Double", "elementor") },
|
|
3414
|
+
{ value: "groove", label: (0, import_i18n14.__)("Groove", "elementor") },
|
|
3415
|
+
{ value: "ridge", label: (0, import_i18n14.__)("Ridge", "elementor") },
|
|
3416
|
+
{ value: "inset", label: (0, import_i18n14.__)("Inset", "elementor") },
|
|
3417
|
+
{ value: "outset", label: (0, import_i18n14.__)("Outset", "elementor") }
|
|
3344
3418
|
];
|
|
3345
3419
|
var BorderStyleField = () => /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(import_editor_controls10.SelectControl, { options: borderStyles })));
|
|
3346
3420
|
|
|
@@ -3350,32 +3424,32 @@ var import_editor_controls11 = require("@elementor/editor-controls");
|
|
|
3350
3424
|
var import_editor_props13 = require("@elementor/editor-props");
|
|
3351
3425
|
var import_icons6 = require("@elementor/icons");
|
|
3352
3426
|
var import_ui21 = require("@elementor/ui");
|
|
3353
|
-
var
|
|
3354
|
-
var BORDER_WIDTH_LABEL = (0,
|
|
3427
|
+
var import_i18n15 = require("@wordpress/i18n");
|
|
3428
|
+
var BORDER_WIDTH_LABEL = (0, import_i18n15.__)("Border width", "elementor");
|
|
3355
3429
|
var InlineStartIcon = (0, import_ui21.withDirection)(import_icons6.SideRightIcon);
|
|
3356
3430
|
var InlineEndIcon = (0, import_ui21.withDirection)(import_icons6.SideLeftIcon);
|
|
3357
3431
|
var getEdges = (isSiteRtl) => [
|
|
3358
3432
|
{
|
|
3359
|
-
label: (0,
|
|
3360
|
-
ariaLabel: (0,
|
|
3433
|
+
label: (0, import_i18n15.__)("Top", "elementor"),
|
|
3434
|
+
ariaLabel: (0, import_i18n15.__)("Border top width", "elementor"),
|
|
3361
3435
|
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideTopIcon, { fontSize: "tiny" }),
|
|
3362
3436
|
bind: "block-start"
|
|
3363
3437
|
},
|
|
3364
3438
|
{
|
|
3365
|
-
label: isSiteRtl ? (0,
|
|
3366
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3439
|
+
label: isSiteRtl ? (0, import_i18n15.__)("Left", "elementor") : (0, import_i18n15.__)("Right", "elementor"),
|
|
3440
|
+
ariaLabel: isSiteRtl ? (0, import_i18n15.__)("Border left width", "elementor") : (0, import_i18n15.__)("Border right width", "elementor"),
|
|
3367
3441
|
icon: /* @__PURE__ */ React35.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3368
3442
|
bind: "inline-end"
|
|
3369
3443
|
},
|
|
3370
3444
|
{
|
|
3371
|
-
label: (0,
|
|
3372
|
-
ariaLabel: (0,
|
|
3445
|
+
label: (0, import_i18n15.__)("Bottom", "elementor"),
|
|
3446
|
+
ariaLabel: (0, import_i18n15.__)("Border bottom width", "elementor"),
|
|
3373
3447
|
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideBottomIcon, { fontSize: "tiny" }),
|
|
3374
3448
|
bind: "block-end"
|
|
3375
3449
|
},
|
|
3376
3450
|
{
|
|
3377
|
-
label: isSiteRtl ? (0,
|
|
3378
|
-
ariaLabel: isSiteRtl ? (0,
|
|
3451
|
+
label: isSiteRtl ? (0, import_i18n15.__)("Right", "elementor") : (0, import_i18n15.__)("Left", "elementor"),
|
|
3452
|
+
ariaLabel: isSiteRtl ? (0, import_i18n15.__)("Border right width", "elementor") : (0, import_i18n15.__)("Border left width", "elementor"),
|
|
3379
3453
|
icon: /* @__PURE__ */ React35.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3380
3454
|
bind: "inline-start"
|
|
3381
3455
|
}
|
|
@@ -3388,7 +3462,7 @@ var BorderWidthField = () => {
|
|
|
3388
3462
|
items: getEdges(isSiteRtl),
|
|
3389
3463
|
label: BORDER_WIDTH_LABEL,
|
|
3390
3464
|
icon: /* @__PURE__ */ React35.createElement(import_icons6.SideAllIcon, { fontSize: "tiny" }),
|
|
3391
|
-
tooltipLabel: (0,
|
|
3465
|
+
tooltipLabel: (0, import_i18n15.__)("Adjust borders", "elementor"),
|
|
3392
3466
|
multiSizePropTypeUtil: import_editor_props13.borderWidthPropTypeUtil
|
|
3393
3467
|
}
|
|
3394
3468
|
));
|
|
@@ -3400,12 +3474,12 @@ var BorderSection = () => /* @__PURE__ */ React36.createElement(SectionContent,
|
|
|
3400
3474
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3401
3475
|
var React40 = __toESM(require("react"));
|
|
3402
3476
|
var import_editor_controls14 = require("@elementor/editor-controls");
|
|
3403
|
-
var
|
|
3477
|
+
var import_i18n18 = require("@wordpress/i18n");
|
|
3404
3478
|
|
|
3405
3479
|
// src/utils/can-element-have-children.ts
|
|
3406
|
-
var
|
|
3480
|
+
var import_editor_elements10 = require("@elementor/editor-elements");
|
|
3407
3481
|
var canElementHaveChildren = (elementId) => {
|
|
3408
|
-
const container = (0,
|
|
3482
|
+
const container = (0, import_editor_elements10.getContainer)(elementId);
|
|
3409
3483
|
if (!container) {
|
|
3410
3484
|
return false;
|
|
3411
3485
|
}
|
|
@@ -3414,7 +3488,7 @@ var canElementHaveChildren = (elementId) => {
|
|
|
3414
3488
|
|
|
3415
3489
|
// src/utils/get-recently-used-styles.ts
|
|
3416
3490
|
var import_editor_canvas = require("@elementor/editor-canvas");
|
|
3417
|
-
var
|
|
3491
|
+
var import_editor_elements11 = require("@elementor/editor-elements");
|
|
3418
3492
|
var import_editor_styles7 = require("@elementor/editor-styles");
|
|
3419
3493
|
var getRecentlyUsedList = async (elementId) => {
|
|
3420
3494
|
if (!elementId) {
|
|
@@ -3424,7 +3498,7 @@ var getRecentlyUsedList = async (elementId) => {
|
|
|
3424
3498
|
transformers: import_editor_canvas.styleTransformersRegistry,
|
|
3425
3499
|
schema: (0, import_editor_styles7.getStylesSchema)()
|
|
3426
3500
|
});
|
|
3427
|
-
const styles = (0,
|
|
3501
|
+
const styles = (0, import_editor_elements11.getElementStyles)(elementId) ?? {};
|
|
3428
3502
|
const styleKeys = Object.keys(styles ?? {});
|
|
3429
3503
|
const variants = styleKeys.map((key) => styles?.[key]?.variants ?? []);
|
|
3430
3504
|
const resolved = await Promise.all(
|
|
@@ -3448,25 +3522,25 @@ var PanelDivider = () => /* @__PURE__ */ React37.createElement(import_ui22.Divid
|
|
|
3448
3522
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3449
3523
|
var React38 = __toESM(require("react"));
|
|
3450
3524
|
var import_editor_controls12 = require("@elementor/editor-controls");
|
|
3451
|
-
var
|
|
3452
|
-
var BLEND_MODE_LABEL = (0,
|
|
3525
|
+
var import_i18n16 = require("@wordpress/i18n");
|
|
3526
|
+
var BLEND_MODE_LABEL = (0, import_i18n16.__)("Blend mode", "elementor");
|
|
3453
3527
|
var blendModeOptions = [
|
|
3454
|
-
{ label: (0,
|
|
3455
|
-
{ label: (0,
|
|
3456
|
-
{ label: (0,
|
|
3457
|
-
{ label: (0,
|
|
3458
|
-
{ label: (0,
|
|
3459
|
-
{ label: (0,
|
|
3460
|
-
{ label: (0,
|
|
3461
|
-
{ label: (0,
|
|
3462
|
-
{ label: (0,
|
|
3463
|
-
{ label: (0,
|
|
3464
|
-
{ label: (0,
|
|
3465
|
-
{ label: (0,
|
|
3466
|
-
{ label: (0,
|
|
3467
|
-
{ label: (0,
|
|
3468
|
-
{ label: (0,
|
|
3469
|
-
{ label: (0,
|
|
3528
|
+
{ label: (0, import_i18n16.__)("Normal", "elementor"), value: "normal" },
|
|
3529
|
+
{ label: (0, import_i18n16.__)("Multiply", "elementor"), value: "multiply" },
|
|
3530
|
+
{ label: (0, import_i18n16.__)("Screen", "elementor"), value: "screen" },
|
|
3531
|
+
{ label: (0, import_i18n16.__)("Overlay", "elementor"), value: "overlay" },
|
|
3532
|
+
{ label: (0, import_i18n16.__)("Darken", "elementor"), value: "darken" },
|
|
3533
|
+
{ label: (0, import_i18n16.__)("Lighten", "elementor"), value: "lighten" },
|
|
3534
|
+
{ label: (0, import_i18n16.__)("Color dodge", "elementor"), value: "color-dodge" },
|
|
3535
|
+
{ label: (0, import_i18n16.__)("Color burn", "elementor"), value: "color-burn" },
|
|
3536
|
+
{ label: (0, import_i18n16.__)("Saturation", "elementor"), value: "saturation" },
|
|
3537
|
+
{ label: (0, import_i18n16.__)("Color", "elementor"), value: "color" },
|
|
3538
|
+
{ label: (0, import_i18n16.__)("Difference", "elementor"), value: "difference" },
|
|
3539
|
+
{ label: (0, import_i18n16.__)("Exclusion", "elementor"), value: "exclusion" },
|
|
3540
|
+
{ label: (0, import_i18n16.__)("Hue", "elementor"), value: "hue" },
|
|
3541
|
+
{ label: (0, import_i18n16.__)("Luminosity", "elementor"), value: "luminosity" },
|
|
3542
|
+
{ label: (0, import_i18n16.__)("Soft light", "elementor"), value: "soft-light" },
|
|
3543
|
+
{ label: (0, import_i18n16.__)("Hard light", "elementor"), value: "hard-light" }
|
|
3470
3544
|
];
|
|
3471
3545
|
var BlendModeField = () => {
|
|
3472
3546
|
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(import_editor_controls12.SelectControl, { options: blendModeOptions })));
|
|
@@ -3476,19 +3550,19 @@ var BlendModeField = () => {
|
|
|
3476
3550
|
var React39 = __toESM(require("react"));
|
|
3477
3551
|
var import_react21 = require("react");
|
|
3478
3552
|
var import_editor_controls13 = require("@elementor/editor-controls");
|
|
3479
|
-
var
|
|
3480
|
-
var OPACITY_LABEL = (0,
|
|
3553
|
+
var import_i18n17 = require("@wordpress/i18n");
|
|
3554
|
+
var OPACITY_LABEL = (0, import_i18n17.__)("Opacity", "elementor");
|
|
3481
3555
|
var OpacityControlField = () => {
|
|
3482
3556
|
const rowRef = (0, import_react21.useRef)(null);
|
|
3483
3557
|
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(import_editor_controls13.SizeControl, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3484
3558
|
};
|
|
3485
3559
|
|
|
3486
3560
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3487
|
-
var BOX_SHADOW_LABEL = (0,
|
|
3488
|
-
var FILTER_LABEL = (0,
|
|
3489
|
-
var TRANSFORM_LABEL = (0,
|
|
3490
|
-
var BACKDROP_FILTER_LABEL = (0,
|
|
3491
|
-
var TRANSITIONS_LABEL = (0,
|
|
3561
|
+
var BOX_SHADOW_LABEL = (0, import_i18n18.__)("Box shadow", "elementor");
|
|
3562
|
+
var FILTER_LABEL = (0, import_i18n18.__)("Filters", "elementor");
|
|
3563
|
+
var TRANSFORM_LABEL = (0, import_i18n18.__)("Transform", "elementor");
|
|
3564
|
+
var BACKDROP_FILTER_LABEL = (0, import_i18n18.__)("Backdrop filters", "elementor");
|
|
3565
|
+
var TRANSITIONS_LABEL = (0, import_i18n18.__)("Transitions", "elementor");
|
|
3492
3566
|
var EffectsSection = () => {
|
|
3493
3567
|
const { element } = useElement();
|
|
3494
3568
|
const { meta } = useStyle();
|
|
@@ -3505,19 +3579,19 @@ var EffectsSection = () => {
|
|
|
3505
3579
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
3506
3580
|
var React61 = __toESM(require("react"));
|
|
3507
3581
|
var import_editor_controls31 = require("@elementor/editor-controls");
|
|
3508
|
-
var
|
|
3582
|
+
var import_editor_elements13 = require("@elementor/editor-elements");
|
|
3509
3583
|
var import_locations3 = require("@elementor/locations");
|
|
3510
|
-
var
|
|
3584
|
+
var import_i18n38 = require("@wordpress/i18n");
|
|
3511
3585
|
|
|
3512
3586
|
// src/hooks/use-computed-style.ts
|
|
3513
|
-
var
|
|
3587
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
3514
3588
|
function useComputedStyle(elementId) {
|
|
3515
|
-
return (0,
|
|
3589
|
+
return (0, import_editor_v1_adapters7.__privateUseListenTo)(
|
|
3516
3590
|
[
|
|
3517
|
-
(0,
|
|
3518
|
-
(0,
|
|
3519
|
-
(0,
|
|
3520
|
-
(0,
|
|
3591
|
+
(0, import_editor_v1_adapters7.windowEvent)("elementor/device-mode/change"),
|
|
3592
|
+
(0, import_editor_v1_adapters7.commandEndEvent)("document/elements/reset-style"),
|
|
3593
|
+
(0, import_editor_v1_adapters7.commandEndEvent)("document/elements/settings"),
|
|
3594
|
+
(0, import_editor_v1_adapters7.commandEndEvent)("document/elements/paste-style")
|
|
3521
3595
|
],
|
|
3522
3596
|
() => {
|
|
3523
3597
|
if (!elementId) {
|
|
@@ -3541,7 +3615,7 @@ var import_editor_ui6 = require("@elementor/editor-ui");
|
|
|
3541
3615
|
var React41 = __toESM(require("react"));
|
|
3542
3616
|
var import_editor_styles_repository17 = require("@elementor/editor-styles-repository");
|
|
3543
3617
|
var import_ui23 = require("@elementor/ui");
|
|
3544
|
-
var
|
|
3618
|
+
var import_i18n19 = require("@wordpress/i18n");
|
|
3545
3619
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
3546
3620
|
const { id, meta, provider } = useStyle();
|
|
3547
3621
|
const snapshot = useStylesInheritanceSnapshot();
|
|
@@ -3555,9 +3629,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3555
3629
|
if (!hasValues && !hasOverrides) {
|
|
3556
3630
|
return null;
|
|
3557
3631
|
}
|
|
3558
|
-
const hasValueLabel = (0,
|
|
3559
|
-
const hasOverridesLabel = (0,
|
|
3560
|
-
return /* @__PURE__ */ React41.createElement(import_ui23.Tooltip, { title: (0,
|
|
3632
|
+
const hasValueLabel = (0, import_i18n19.__)("Has effective styles", "elementor");
|
|
3633
|
+
const hasOverridesLabel = (0, import_i18n19.__)("Has overridden styles", "elementor");
|
|
3634
|
+
return /* @__PURE__ */ React41.createElement(import_ui23.Tooltip, { title: (0, import_i18n19.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React41.createElement(import_ui23.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React41.createElement(
|
|
3561
3635
|
StyleIndicator,
|
|
3562
3636
|
{
|
|
3563
3637
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -3619,14 +3693,14 @@ var React44 = __toESM(require("react"));
|
|
|
3619
3693
|
var import_editor_controls15 = require("@elementor/editor-controls");
|
|
3620
3694
|
var import_icons7 = require("@elementor/icons");
|
|
3621
3695
|
var import_ui25 = require("@elementor/ui");
|
|
3622
|
-
var
|
|
3696
|
+
var import_i18n21 = require("@wordpress/i18n");
|
|
3623
3697
|
|
|
3624
3698
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3625
3699
|
var React43 = __toESM(require("react"));
|
|
3626
3700
|
var import_react22 = require("react");
|
|
3627
3701
|
var import_ui24 = require("@elementor/ui");
|
|
3628
|
-
var
|
|
3629
|
-
var FLEX_DIRECTION_LABEL = (0,
|
|
3702
|
+
var import_i18n20 = require("@wordpress/i18n");
|
|
3703
|
+
var FLEX_DIRECTION_LABEL = (0, import_i18n20.__)("Flex direction", "elementor");
|
|
3630
3704
|
var CLOCKWISE_ANGLES = {
|
|
3631
3705
|
row: 0,
|
|
3632
3706
|
column: 90,
|
|
@@ -3669,7 +3743,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3669
3743
|
};
|
|
3670
3744
|
|
|
3671
3745
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3672
|
-
var ALIGN_CONTENT_LABEL = (0,
|
|
3746
|
+
var ALIGN_CONTENT_LABEL = (0, import_i18n21.__)("Align content", "elementor");
|
|
3673
3747
|
var StartIcon = (0, import_ui25.withDirection)(import_icons7.JustifyTopIcon);
|
|
3674
3748
|
var EndIcon = (0, import_ui25.withDirection)(import_icons7.JustifyBottomIcon);
|
|
3675
3749
|
var iconProps = {
|
|
@@ -3680,37 +3754,37 @@ var iconProps = {
|
|
|
3680
3754
|
var options = [
|
|
3681
3755
|
{
|
|
3682
3756
|
value: "start",
|
|
3683
|
-
label: (0,
|
|
3757
|
+
label: (0, import_i18n21.__)("Start", "elementor"),
|
|
3684
3758
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3685
3759
|
showTooltip: true
|
|
3686
3760
|
},
|
|
3687
3761
|
{
|
|
3688
3762
|
value: "center",
|
|
3689
|
-
label: (0,
|
|
3763
|
+
label: (0, import_i18n21.__)("Center", "elementor"),
|
|
3690
3764
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifyCenterIcon, size, ...iconProps }),
|
|
3691
3765
|
showTooltip: true
|
|
3692
3766
|
},
|
|
3693
3767
|
{
|
|
3694
3768
|
value: "end",
|
|
3695
|
-
label: (0,
|
|
3769
|
+
label: (0, import_i18n21.__)("End", "elementor"),
|
|
3696
3770
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3697
3771
|
showTooltip: true
|
|
3698
3772
|
},
|
|
3699
3773
|
{
|
|
3700
3774
|
value: "space-between",
|
|
3701
|
-
label: (0,
|
|
3775
|
+
label: (0, import_i18n21.__)("Space between", "elementor"),
|
|
3702
3776
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifySpaceBetweenVerticalIcon, size, ...iconProps }),
|
|
3703
3777
|
showTooltip: true
|
|
3704
3778
|
},
|
|
3705
3779
|
{
|
|
3706
3780
|
value: "space-around",
|
|
3707
|
-
label: (0,
|
|
3781
|
+
label: (0, import_i18n21.__)("Space around", "elementor"),
|
|
3708
3782
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifySpaceAroundVerticalIcon, size, ...iconProps }),
|
|
3709
3783
|
showTooltip: true
|
|
3710
3784
|
},
|
|
3711
3785
|
{
|
|
3712
3786
|
value: "space-evenly",
|
|
3713
|
-
label: (0,
|
|
3787
|
+
label: (0, import_i18n21.__)("Space evenly", "elementor"),
|
|
3714
3788
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: import_icons7.JustifyDistributeVerticalIcon, size, ...iconProps }),
|
|
3715
3789
|
showTooltip: true
|
|
3716
3790
|
}
|
|
@@ -3722,8 +3796,8 @@ var React45 = __toESM(require("react"));
|
|
|
3722
3796
|
var import_editor_controls16 = require("@elementor/editor-controls");
|
|
3723
3797
|
var import_icons8 = require("@elementor/icons");
|
|
3724
3798
|
var import_ui26 = require("@elementor/ui");
|
|
3725
|
-
var
|
|
3726
|
-
var ALIGN_ITEMS_LABEL = (0,
|
|
3799
|
+
var import_i18n22 = require("@wordpress/i18n");
|
|
3800
|
+
var ALIGN_ITEMS_LABEL = (0, import_i18n22.__)("Align items", "elementor");
|
|
3727
3801
|
var StartIcon2 = (0, import_ui26.withDirection)(import_icons8.LayoutAlignLeftIcon);
|
|
3728
3802
|
var EndIcon2 = (0, import_ui26.withDirection)(import_icons8.LayoutAlignRightIcon);
|
|
3729
3803
|
var iconProps2 = {
|
|
@@ -3733,25 +3807,25 @@ var iconProps2 = {
|
|
|
3733
3807
|
var options2 = [
|
|
3734
3808
|
{
|
|
3735
3809
|
value: "start",
|
|
3736
|
-
label: (0,
|
|
3810
|
+
label: (0, import_i18n22.__)("Start", "elementor"),
|
|
3737
3811
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3738
3812
|
showTooltip: true
|
|
3739
3813
|
},
|
|
3740
3814
|
{
|
|
3741
3815
|
value: "center",
|
|
3742
|
-
label: (0,
|
|
3816
|
+
label: (0, import_i18n22.__)("Center", "elementor"),
|
|
3743
3817
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.LayoutAlignCenterIcon, size, ...iconProps2 }),
|
|
3744
3818
|
showTooltip: true
|
|
3745
3819
|
},
|
|
3746
3820
|
{
|
|
3747
3821
|
value: "end",
|
|
3748
|
-
label: (0,
|
|
3822
|
+
label: (0, import_i18n22.__)("End", "elementor"),
|
|
3749
3823
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3750
3824
|
showTooltip: true
|
|
3751
3825
|
},
|
|
3752
3826
|
{
|
|
3753
3827
|
value: "stretch",
|
|
3754
|
-
label: (0,
|
|
3828
|
+
label: (0, import_i18n22.__)("Stretch", "elementor"),
|
|
3755
3829
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: import_icons8.LayoutDistributeVerticalIcon, size, ...iconProps2 }),
|
|
3756
3830
|
showTooltip: true
|
|
3757
3831
|
}
|
|
@@ -3765,8 +3839,8 @@ var React46 = __toESM(require("react"));
|
|
|
3765
3839
|
var import_editor_controls17 = require("@elementor/editor-controls");
|
|
3766
3840
|
var import_icons9 = require("@elementor/icons");
|
|
3767
3841
|
var import_ui27 = require("@elementor/ui");
|
|
3768
|
-
var
|
|
3769
|
-
var ALIGN_SELF_LABEL = (0,
|
|
3842
|
+
var import_i18n23 = require("@wordpress/i18n");
|
|
3843
|
+
var ALIGN_SELF_LABEL = (0, import_i18n23.__)("Align self", "elementor");
|
|
3770
3844
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3771
3845
|
row: 90,
|
|
3772
3846
|
"row-reverse": 90,
|
|
@@ -3781,7 +3855,7 @@ var iconProps3 = {
|
|
|
3781
3855
|
var getOptions = (parentStyleDirection) => [
|
|
3782
3856
|
{
|
|
3783
3857
|
value: "start",
|
|
3784
|
-
label: (0,
|
|
3858
|
+
label: (0, import_i18n23.__)("Start", "elementor"),
|
|
3785
3859
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3786
3860
|
RotatedIcon,
|
|
3787
3861
|
{
|
|
@@ -3795,7 +3869,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3795
3869
|
},
|
|
3796
3870
|
{
|
|
3797
3871
|
value: "center",
|
|
3798
|
-
label: (0,
|
|
3872
|
+
label: (0, import_i18n23.__)("Center", "elementor"),
|
|
3799
3873
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3800
3874
|
RotatedIcon,
|
|
3801
3875
|
{
|
|
@@ -3809,7 +3883,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3809
3883
|
},
|
|
3810
3884
|
{
|
|
3811
3885
|
value: "end",
|
|
3812
|
-
label: (0,
|
|
3886
|
+
label: (0, import_i18n23.__)("End", "elementor"),
|
|
3813
3887
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3814
3888
|
RotatedIcon,
|
|
3815
3889
|
{
|
|
@@ -3823,7 +3897,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3823
3897
|
},
|
|
3824
3898
|
{
|
|
3825
3899
|
value: "stretch",
|
|
3826
|
-
label: (0,
|
|
3900
|
+
label: (0, import_i18n23.__)("Stretch", "elementor"),
|
|
3827
3901
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3828
3902
|
RotatedIcon,
|
|
3829
3903
|
{
|
|
@@ -3842,8 +3916,8 @@ var AlignSelfChild = ({ parentStyleDirection }) => /* @__PURE__ */ React46.creat
|
|
|
3842
3916
|
var React47 = __toESM(require("react"));
|
|
3843
3917
|
var import_editor_controls18 = require("@elementor/editor-controls");
|
|
3844
3918
|
var import_icons10 = require("@elementor/icons");
|
|
3845
|
-
var
|
|
3846
|
-
var ALIGN_SELF_LABEL2 = (0,
|
|
3919
|
+
var import_i18n24 = require("@wordpress/i18n");
|
|
3920
|
+
var ALIGN_SELF_LABEL2 = (0, import_i18n24.__)("Align self", "elementor");
|
|
3847
3921
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3848
3922
|
row: 0,
|
|
3849
3923
|
column: -90
|
|
@@ -3859,25 +3933,25 @@ var getOptions2 = (parentStyleDirection) => {
|
|
|
3859
3933
|
return [
|
|
3860
3934
|
{
|
|
3861
3935
|
value: "start",
|
|
3862
|
-
label: (0,
|
|
3936
|
+
label: (0, import_i18n24.__)("Start", "elementor"),
|
|
3863
3937
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyTopIcon, size, offset }),
|
|
3864
3938
|
showTooltip: true
|
|
3865
3939
|
},
|
|
3866
3940
|
{
|
|
3867
3941
|
value: "center",
|
|
3868
|
-
label: (0,
|
|
3942
|
+
label: (0, import_i18n24.__)("Center", "elementor"),
|
|
3869
3943
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyCenterIcon, size, offset }),
|
|
3870
3944
|
showTooltip: true
|
|
3871
3945
|
},
|
|
3872
3946
|
{
|
|
3873
3947
|
value: "end",
|
|
3874
|
-
label: (0,
|
|
3948
|
+
label: (0, import_i18n24.__)("End", "elementor"),
|
|
3875
3949
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.JustifyBottomIcon, size, offset }),
|
|
3876
3950
|
showTooltip: true
|
|
3877
3951
|
},
|
|
3878
3952
|
{
|
|
3879
3953
|
value: "stretch",
|
|
3880
|
-
label: (0,
|
|
3954
|
+
label: (0, import_i18n24.__)("Stretch", "elementor"),
|
|
3881
3955
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: import_icons10.LayoutDistributeVerticalIcon, size, offset }),
|
|
3882
3956
|
showTooltip: true
|
|
3883
3957
|
}
|
|
@@ -3887,43 +3961,43 @@ var getOptions2 = (parentStyleDirection) => {
|
|
|
3887
3961
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3888
3962
|
var React48 = __toESM(require("react"));
|
|
3889
3963
|
var import_editor_controls19 = require("@elementor/editor-controls");
|
|
3890
|
-
var
|
|
3891
|
-
var DISPLAY_LABEL = (0,
|
|
3964
|
+
var import_i18n25 = require("@wordpress/i18n");
|
|
3965
|
+
var DISPLAY_LABEL = (0, import_i18n25.__)("Display", "elementor");
|
|
3892
3966
|
var displayFieldItems = [
|
|
3893
3967
|
{
|
|
3894
3968
|
value: "block",
|
|
3895
|
-
renderContent: () => (0,
|
|
3896
|
-
label: (0,
|
|
3969
|
+
renderContent: () => (0, import_i18n25.__)("Block", "elementor"),
|
|
3970
|
+
label: (0, import_i18n25.__)("Block", "elementor"),
|
|
3897
3971
|
showTooltip: true
|
|
3898
3972
|
},
|
|
3899
3973
|
{
|
|
3900
3974
|
value: "flex",
|
|
3901
|
-
renderContent: () => (0,
|
|
3902
|
-
label: (0,
|
|
3975
|
+
renderContent: () => (0, import_i18n25.__)("Flex", "elementor"),
|
|
3976
|
+
label: (0, import_i18n25.__)("Flex", "elementor"),
|
|
3903
3977
|
showTooltip: true
|
|
3904
3978
|
},
|
|
3905
3979
|
{
|
|
3906
3980
|
value: "grid",
|
|
3907
|
-
renderContent: () => (0,
|
|
3908
|
-
label: (0,
|
|
3981
|
+
renderContent: () => (0, import_i18n25.__)("Grid", "elementor"),
|
|
3982
|
+
label: (0, import_i18n25.__)("Grid", "elementor"),
|
|
3909
3983
|
showTooltip: true
|
|
3910
3984
|
},
|
|
3911
3985
|
{
|
|
3912
3986
|
value: "none",
|
|
3913
|
-
renderContent: () => (0,
|
|
3914
|
-
label: (0,
|
|
3987
|
+
renderContent: () => (0, import_i18n25.__)("None", "elementor"),
|
|
3988
|
+
label: (0, import_i18n25.__)("None", "elementor"),
|
|
3915
3989
|
showTooltip: true
|
|
3916
3990
|
},
|
|
3917
3991
|
{
|
|
3918
3992
|
value: "inline-block",
|
|
3919
|
-
renderContent: () => (0,
|
|
3920
|
-
label: (0,
|
|
3993
|
+
renderContent: () => (0, import_i18n25.__)("In-blk", "elementor"),
|
|
3994
|
+
label: (0, import_i18n25.__)("Inline-block", "elementor"),
|
|
3921
3995
|
showTooltip: true
|
|
3922
3996
|
},
|
|
3923
3997
|
{
|
|
3924
3998
|
value: "inline-flex",
|
|
3925
|
-
renderContent: () => (0,
|
|
3926
|
-
label: (0,
|
|
3999
|
+
renderContent: () => (0, import_i18n25.__)("In-flx", "elementor"),
|
|
4000
|
+
label: (0, import_i18n25.__)("Inline-flex", "elementor"),
|
|
3927
4001
|
showTooltip: true
|
|
3928
4002
|
}
|
|
3929
4003
|
];
|
|
@@ -3938,12 +4012,12 @@ var React49 = __toESM(require("react"));
|
|
|
3938
4012
|
var import_editor_controls20 = require("@elementor/editor-controls");
|
|
3939
4013
|
var import_icons11 = require("@elementor/icons");
|
|
3940
4014
|
var import_ui28 = require("@elementor/ui");
|
|
3941
|
-
var
|
|
3942
|
-
var FLEX_DIRECTION_LABEL2 = (0,
|
|
4015
|
+
var import_i18n26 = require("@wordpress/i18n");
|
|
4016
|
+
var FLEX_DIRECTION_LABEL2 = (0, import_i18n26.__)("Direction", "elementor");
|
|
3943
4017
|
var options3 = [
|
|
3944
4018
|
{
|
|
3945
4019
|
value: "row",
|
|
3946
|
-
label: (0,
|
|
4020
|
+
label: (0, import_i18n26.__)("Row", "elementor"),
|
|
3947
4021
|
renderContent: ({ size }) => {
|
|
3948
4022
|
const StartIcon7 = (0, import_ui28.withDirection)(import_icons11.ArrowRightIcon);
|
|
3949
4023
|
return /* @__PURE__ */ React49.createElement(StartIcon7, { fontSize: size });
|
|
@@ -3952,13 +4026,13 @@ var options3 = [
|
|
|
3952
4026
|
},
|
|
3953
4027
|
{
|
|
3954
4028
|
value: "column",
|
|
3955
|
-
label: (0,
|
|
4029
|
+
label: (0, import_i18n26.__)("Column", "elementor"),
|
|
3956
4030
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons11.ArrowDownSmallIcon, { fontSize: size }),
|
|
3957
4031
|
showTooltip: true
|
|
3958
4032
|
},
|
|
3959
4033
|
{
|
|
3960
4034
|
value: "row-reverse",
|
|
3961
|
-
label: (0,
|
|
4035
|
+
label: (0, import_i18n26.__)("Reversed row", "elementor"),
|
|
3962
4036
|
renderContent: ({ size }) => {
|
|
3963
4037
|
const EndIcon6 = (0, import_ui28.withDirection)(import_icons11.ArrowLeftIcon);
|
|
3964
4038
|
return /* @__PURE__ */ React49.createElement(EndIcon6, { fontSize: size });
|
|
@@ -3967,7 +4041,7 @@ var options3 = [
|
|
|
3967
4041
|
},
|
|
3968
4042
|
{
|
|
3969
4043
|
value: "column-reverse",
|
|
3970
|
-
label: (0,
|
|
4044
|
+
label: (0, import_i18n26.__)("Reversed column", "elementor"),
|
|
3971
4045
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(import_icons11.ArrowUpSmallIcon, { fontSize: size }),
|
|
3972
4046
|
showTooltip: true
|
|
3973
4047
|
}
|
|
@@ -3982,8 +4056,8 @@ var import_react23 = require("react");
|
|
|
3982
4056
|
var import_editor_controls21 = require("@elementor/editor-controls");
|
|
3983
4057
|
var import_icons12 = require("@elementor/icons");
|
|
3984
4058
|
var import_ui29 = require("@elementor/ui");
|
|
3985
|
-
var
|
|
3986
|
-
var ORDER_LABEL = (0,
|
|
4059
|
+
var import_i18n27 = require("@wordpress/i18n");
|
|
4060
|
+
var ORDER_LABEL = (0, import_i18n27.__)("Order", "elementor");
|
|
3987
4061
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
3988
4062
|
var LAST_DEFAULT_VALUE = 99999;
|
|
3989
4063
|
var FIRST = "first";
|
|
@@ -3996,19 +4070,19 @@ var orderValueMap = {
|
|
|
3996
4070
|
var items = [
|
|
3997
4071
|
{
|
|
3998
4072
|
value: FIRST,
|
|
3999
|
-
label: (0,
|
|
4073
|
+
label: (0, import_i18n27.__)("First", "elementor"),
|
|
4000
4074
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowUpSmallIcon, { fontSize: size }),
|
|
4001
4075
|
showTooltip: true
|
|
4002
4076
|
},
|
|
4003
4077
|
{
|
|
4004
4078
|
value: LAST,
|
|
4005
|
-
label: (0,
|
|
4079
|
+
label: (0, import_i18n27.__)("Last", "elementor"),
|
|
4006
4080
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.ArrowDownSmallIcon, { fontSize: size }),
|
|
4007
4081
|
showTooltip: true
|
|
4008
4082
|
},
|
|
4009
4083
|
{
|
|
4010
4084
|
value: CUSTOM,
|
|
4011
|
-
label: (0,
|
|
4085
|
+
label: (0, import_i18n27.__)("Custom", "elementor"),
|
|
4012
4086
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(import_icons12.PencilIcon, { fontSize: size }),
|
|
4013
4087
|
showTooltip: true
|
|
4014
4088
|
}
|
|
@@ -4069,7 +4143,7 @@ function FlexOrderFieldContent() {
|
|
|
4069
4143
|
placeholder: groupPlaceholder,
|
|
4070
4144
|
disabled: !canEdit
|
|
4071
4145
|
}
|
|
4072
|
-
)), isCustomVisible && /* @__PURE__ */ React50.createElement(import_ui29.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, (0,
|
|
4146
|
+
)), isCustomVisible && /* @__PURE__ */ React50.createElement(import_ui29.Grid, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, (0, import_i18n27.__)("Custom order", "elementor"))), /* @__PURE__ */ React50.createElement(import_ui29.Grid, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React50.createElement(
|
|
4073
4147
|
import_editor_controls21.NumberControl,
|
|
4074
4148
|
{
|
|
4075
4149
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4098,25 +4172,25 @@ var import_react24 = require("react");
|
|
|
4098
4172
|
var import_editor_controls22 = require("@elementor/editor-controls");
|
|
4099
4173
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
4100
4174
|
var import_icons13 = require("@elementor/icons");
|
|
4101
|
-
var
|
|
4102
|
-
var FLEX_SIZE_LABEL = (0,
|
|
4175
|
+
var import_i18n28 = require("@wordpress/i18n");
|
|
4176
|
+
var FLEX_SIZE_LABEL = (0, import_i18n28.__)("Flex Size", "elementor");
|
|
4103
4177
|
var DEFAULT = 1;
|
|
4104
4178
|
var items2 = [
|
|
4105
4179
|
{
|
|
4106
4180
|
value: "flex-grow",
|
|
4107
|
-
label: (0,
|
|
4181
|
+
label: (0, import_i18n28.__)("Grow", "elementor"),
|
|
4108
4182
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ExpandIcon, { fontSize: size }),
|
|
4109
4183
|
showTooltip: true
|
|
4110
4184
|
},
|
|
4111
4185
|
{
|
|
4112
4186
|
value: "flex-shrink",
|
|
4113
|
-
label: (0,
|
|
4187
|
+
label: (0, import_i18n28.__)("Shrink", "elementor"),
|
|
4114
4188
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.ShrinkIcon, { fontSize: size }),
|
|
4115
4189
|
showTooltip: true
|
|
4116
4190
|
},
|
|
4117
4191
|
{
|
|
4118
4192
|
value: "custom",
|
|
4119
|
-
label: (0,
|
|
4193
|
+
label: (0, import_i18n28.__)("Custom", "elementor"),
|
|
4120
4194
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(import_icons13.PencilIcon, { fontSize: size }),
|
|
4121
4195
|
showTooltip: true
|
|
4122
4196
|
}
|
|
@@ -4203,7 +4277,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4203
4277
|
var FlexCustomField = () => {
|
|
4204
4278
|
const flexBasisRowRef = (0, import_react24.useRef)(null);
|
|
4205
4279
|
const context = (0, import_editor_controls22.useBoundProp)(import_editor_props14.flexPropTypeUtil);
|
|
4206
|
-
return /* @__PURE__ */ React51.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0,
|
|
4280
|
+
return /* @__PURE__ */ React51.createElement(import_editor_controls22.PropProvider, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n28.__)("Grow", "elementor") }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexGrow" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n28.__)("Shrink", "elementor") }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexShrink" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.NumberControl, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: (0, import_i18n28.__)("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React51.createElement(import_editor_controls22.PropKeyProvider, { bind: "flexBasis" }, /* @__PURE__ */ React51.createElement(import_editor_controls22.SizeControl, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4207
4281
|
};
|
|
4208
4282
|
var getActiveGroup = ({
|
|
4209
4283
|
grow,
|
|
@@ -4229,8 +4303,8 @@ var getActiveGroup = ({
|
|
|
4229
4303
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4230
4304
|
var React52 = __toESM(require("react"));
|
|
4231
4305
|
var import_editor_controls23 = require("@elementor/editor-controls");
|
|
4232
|
-
var
|
|
4233
|
-
var GAPS_LABEL = (0,
|
|
4306
|
+
var import_i18n29 = require("@wordpress/i18n");
|
|
4307
|
+
var GAPS_LABEL = (0, import_i18n29.__)("Gaps", "elementor");
|
|
4234
4308
|
var GapControlField = () => {
|
|
4235
4309
|
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React52.createElement(import_editor_controls23.GapControl, { label: GAPS_LABEL }));
|
|
4236
4310
|
};
|
|
@@ -4240,20 +4314,20 @@ var React53 = __toESM(require("react"));
|
|
|
4240
4314
|
var import_editor_controls24 = require("@elementor/editor-controls");
|
|
4241
4315
|
var import_icons14 = require("@elementor/icons");
|
|
4242
4316
|
var import_ui30 = require("@elementor/ui");
|
|
4243
|
-
var
|
|
4244
|
-
var AUTO_FLOW_LABEL = (0,
|
|
4245
|
-
var DENSE_LABEL = (0,
|
|
4317
|
+
var import_i18n30 = require("@wordpress/i18n");
|
|
4318
|
+
var AUTO_FLOW_LABEL = (0, import_i18n30.__)("Auto flow", "elementor");
|
|
4319
|
+
var DENSE_LABEL = (0, import_i18n30.__)("Dense", "elementor");
|
|
4246
4320
|
var StartIcon4 = (0, import_ui30.withDirection)(import_icons14.ArrowRightIcon);
|
|
4247
4321
|
var directionOptions = [
|
|
4248
4322
|
{
|
|
4249
4323
|
value: "row",
|
|
4250
|
-
label: (0,
|
|
4324
|
+
label: (0, import_i18n30.__)("Row", "elementor"),
|
|
4251
4325
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(StartIcon4, { fontSize: size }),
|
|
4252
4326
|
showTooltip: true
|
|
4253
4327
|
},
|
|
4254
4328
|
{
|
|
4255
4329
|
value: "column",
|
|
4256
|
-
label: (0,
|
|
4330
|
+
label: (0, import_i18n30.__)("Column", "elementor"),
|
|
4257
4331
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(import_icons14.ArrowDownSmallIcon, { fontSize: size }),
|
|
4258
4332
|
showTooltip: true
|
|
4259
4333
|
}
|
|
@@ -4318,15 +4392,15 @@ var React54 = __toESM(require("react"));
|
|
|
4318
4392
|
var import_react25 = require("react");
|
|
4319
4393
|
var import_editor_controls25 = require("@elementor/editor-controls");
|
|
4320
4394
|
var import_ui31 = require("@elementor/ui");
|
|
4321
|
-
var
|
|
4395
|
+
var import_i18n31 = require("@wordpress/i18n");
|
|
4322
4396
|
var DEFAULT_UNIT = "fr";
|
|
4323
|
-
var AUTO_ROWS_LABEL = (0,
|
|
4324
|
-
var AUTO_COLUMNS_LABEL = (0,
|
|
4325
|
-
var AUTO_ROWS_TOOLTIP = (0,
|
|
4397
|
+
var AUTO_ROWS_LABEL = (0, import_i18n31.__)("Auto rows", "elementor");
|
|
4398
|
+
var AUTO_COLUMNS_LABEL = (0, import_i18n31.__)("Auto columns", "elementor");
|
|
4399
|
+
var AUTO_ROWS_TOOLTIP = (0, import_i18n31.__)(
|
|
4326
4400
|
"Set the size for new rows created automatically when content exceeds the defined grid.",
|
|
4327
4401
|
"elementor"
|
|
4328
4402
|
);
|
|
4329
|
-
var AUTO_COLUMNS_TOOLTIP = (0,
|
|
4403
|
+
var AUTO_COLUMNS_TOOLTIP = (0, import_i18n31.__)(
|
|
4330
4404
|
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4331
4405
|
"elementor"
|
|
4332
4406
|
);
|
|
@@ -4364,32 +4438,32 @@ var React55 = __toESM(require("react"));
|
|
|
4364
4438
|
var import_editor_controls26 = require("@elementor/editor-controls");
|
|
4365
4439
|
var import_icons15 = require("@elementor/icons");
|
|
4366
4440
|
var import_ui32 = require("@elementor/ui");
|
|
4367
|
-
var
|
|
4368
|
-
var JUSTIFY_ITEMS_LABEL = (0,
|
|
4441
|
+
var import_i18n32 = require("@wordpress/i18n");
|
|
4442
|
+
var JUSTIFY_ITEMS_LABEL = (0, import_i18n32.__)("Justify items", "elementor");
|
|
4369
4443
|
var StartIcon5 = (0, import_ui32.withDirection)(import_icons15.LayoutAlignLeftIcon);
|
|
4370
4444
|
var EndIcon4 = (0, import_ui32.withDirection)(import_icons15.LayoutAlignRightIcon);
|
|
4371
4445
|
var options4 = [
|
|
4372
4446
|
{
|
|
4373
4447
|
value: "start",
|
|
4374
|
-
label: (0,
|
|
4448
|
+
label: (0, import_i18n32.__)("Start", "elementor"),
|
|
4375
4449
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StartIcon5, { fontSize: size }),
|
|
4376
4450
|
showTooltip: true
|
|
4377
4451
|
},
|
|
4378
4452
|
{
|
|
4379
4453
|
value: "center",
|
|
4380
|
-
label: (0,
|
|
4454
|
+
label: (0, import_i18n32.__)("Center", "elementor"),
|
|
4381
4455
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons15.LayoutAlignCenterIcon, { fontSize: size }),
|
|
4382
4456
|
showTooltip: true
|
|
4383
4457
|
},
|
|
4384
4458
|
{
|
|
4385
4459
|
value: "end",
|
|
4386
|
-
label: (0,
|
|
4460
|
+
label: (0, import_i18n32.__)("End", "elementor"),
|
|
4387
4461
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(EndIcon4, { fontSize: size }),
|
|
4388
4462
|
showTooltip: true
|
|
4389
4463
|
},
|
|
4390
4464
|
{
|
|
4391
4465
|
value: "stretch",
|
|
4392
|
-
label: (0,
|
|
4466
|
+
label: (0, import_i18n32.__)("Stretch", "elementor"),
|
|
4393
4467
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(import_icons15.LayoutDistributeVerticalIcon, { fontSize: size }),
|
|
4394
4468
|
showTooltip: true
|
|
4395
4469
|
}
|
|
@@ -4398,13 +4472,13 @@ var GridJustifyItemsField = () => /* @__PURE__ */ React55.createElement(StylesFi
|
|
|
4398
4472
|
|
|
4399
4473
|
// src/components/style-sections/layout-section/grid-outline-field.tsx
|
|
4400
4474
|
var React56 = __toESM(require("react"));
|
|
4401
|
-
var
|
|
4475
|
+
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
4402
4476
|
var import_ui33 = require("@elementor/ui");
|
|
4403
|
-
var
|
|
4404
|
-
var GRID_OUTLINE_LABEL = (0,
|
|
4477
|
+
var import_i18n33 = require("@wordpress/i18n");
|
|
4478
|
+
var GRID_OUTLINE_LABEL = (0, import_i18n33.__)("Show Grid Outline", "elementor");
|
|
4405
4479
|
var GridOutlineField = () => {
|
|
4406
4480
|
const { element } = useElement();
|
|
4407
|
-
const settings = (0,
|
|
4481
|
+
const settings = (0, import_editor_elements12.useElementEditorSettings)(element.id);
|
|
4408
4482
|
const value = settings?.grid_outline ?? true;
|
|
4409
4483
|
return /* @__PURE__ */ React56.createElement(StylesFieldLayout, { label: GRID_OUTLINE_LABEL }, /* @__PURE__ */ React56.createElement(import_ui33.Box, { sx: { display: "flex", justifyContent: "flex-end" } }, /* @__PURE__ */ React56.createElement(
|
|
4410
4484
|
import_ui33.Switch,
|
|
@@ -4412,7 +4486,7 @@ var GridOutlineField = () => {
|
|
|
4412
4486
|
"aria-label": GRID_OUTLINE_LABEL,
|
|
4413
4487
|
checked: value,
|
|
4414
4488
|
onChange: (event) => {
|
|
4415
|
-
(0,
|
|
4489
|
+
(0, import_editor_elements12.updateElementEditorSettings)({
|
|
4416
4490
|
elementId: element.id,
|
|
4417
4491
|
settings: { grid_outline: event.target.checked }
|
|
4418
4492
|
});
|
|
@@ -4427,7 +4501,7 @@ var React57 = __toESM(require("react"));
|
|
|
4427
4501
|
var import_react26 = require("react");
|
|
4428
4502
|
var import_editor_controls27 = require("@elementor/editor-controls");
|
|
4429
4503
|
var import_ui34 = require("@elementor/ui");
|
|
4430
|
-
var
|
|
4504
|
+
var import_i18n34 = require("@wordpress/i18n");
|
|
4431
4505
|
|
|
4432
4506
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4433
4507
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
@@ -4565,26 +4639,26 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4565
4639
|
)));
|
|
4566
4640
|
};
|
|
4567
4641
|
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React57.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4568
|
-
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(import_ui34.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label: (0,
|
|
4642
|
+
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(import_ui34.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label: (0, import_i18n34.__)("Columns", "elementor") })), /* @__PURE__ */ React57.createElement(import_ui34.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-rows", label: (0, import_i18n34.__)("Rows", "elementor") })));
|
|
4569
4643
|
|
|
4570
4644
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4571
4645
|
var React58 = __toESM(require("react"));
|
|
4572
4646
|
var import_editor_controls28 = require("@elementor/editor-controls");
|
|
4573
4647
|
var import_ui35 = require("@elementor/ui");
|
|
4574
|
-
var
|
|
4648
|
+
var import_i18n35 = require("@wordpress/i18n");
|
|
4575
4649
|
var GridSpanFieldContent = ({ label }) => {
|
|
4576
4650
|
return /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React58.createElement(import_editor_controls28.GridSpanControl, null));
|
|
4577
4651
|
};
|
|
4578
4652
|
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React58.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4579
|
-
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label: (0,
|
|
4653
|
+
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(import_ui35.Grid, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label: (0, import_i18n35.__)("Grid column", "elementor") })), /* @__PURE__ */ React58.createElement(import_ui35.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-row", label: (0, import_i18n35.__)("Grid row", "elementor") })));
|
|
4580
4654
|
|
|
4581
4655
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4582
4656
|
var React59 = __toESM(require("react"));
|
|
4583
4657
|
var import_editor_controls29 = require("@elementor/editor-controls");
|
|
4584
4658
|
var import_icons16 = require("@elementor/icons");
|
|
4585
4659
|
var import_ui36 = require("@elementor/ui");
|
|
4586
|
-
var
|
|
4587
|
-
var JUSTIFY_CONTENT_LABEL = (0,
|
|
4660
|
+
var import_i18n36 = require("@wordpress/i18n");
|
|
4661
|
+
var JUSTIFY_CONTENT_LABEL = (0, import_i18n36.__)("Justify content", "elementor");
|
|
4588
4662
|
var StartIcon6 = (0, import_ui36.withDirection)(import_icons16.JustifyTopIcon);
|
|
4589
4663
|
var EndIcon5 = (0, import_ui36.withDirection)(import_icons16.JustifyBottomIcon);
|
|
4590
4664
|
var iconProps4 = {
|
|
@@ -4594,37 +4668,37 @@ var iconProps4 = {
|
|
|
4594
4668
|
var options5 = [
|
|
4595
4669
|
{
|
|
4596
4670
|
value: "flex-start",
|
|
4597
|
-
label: (0,
|
|
4671
|
+
label: (0, import_i18n36.__)("Start", "elementor"),
|
|
4598
4672
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4599
4673
|
showTooltip: true
|
|
4600
4674
|
},
|
|
4601
4675
|
{
|
|
4602
4676
|
value: "center",
|
|
4603
|
-
label: (0,
|
|
4677
|
+
label: (0, import_i18n36.__)("Center", "elementor"),
|
|
4604
4678
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifyCenterIcon, size, ...iconProps4 }),
|
|
4605
4679
|
showTooltip: true
|
|
4606
4680
|
},
|
|
4607
4681
|
{
|
|
4608
4682
|
value: "flex-end",
|
|
4609
|
-
label: (0,
|
|
4683
|
+
label: (0, import_i18n36.__)("End", "elementor"),
|
|
4610
4684
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4611
4685
|
showTooltip: true
|
|
4612
4686
|
},
|
|
4613
4687
|
{
|
|
4614
4688
|
value: "space-between",
|
|
4615
|
-
label: (0,
|
|
4689
|
+
label: (0, import_i18n36.__)("Space between", "elementor"),
|
|
4616
4690
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceBetweenVerticalIcon, size, ...iconProps4 }),
|
|
4617
4691
|
showTooltip: true
|
|
4618
4692
|
},
|
|
4619
4693
|
{
|
|
4620
4694
|
value: "space-around",
|
|
4621
|
-
label: (0,
|
|
4695
|
+
label: (0, import_i18n36.__)("Space around", "elementor"),
|
|
4622
4696
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifySpaceAroundVerticalIcon, size, ...iconProps4 }),
|
|
4623
4697
|
showTooltip: true
|
|
4624
4698
|
},
|
|
4625
4699
|
{
|
|
4626
4700
|
value: "space-evenly",
|
|
4627
|
-
label: (0,
|
|
4701
|
+
label: (0, import_i18n36.__)("Space evenly", "elementor"),
|
|
4628
4702
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: import_icons16.JustifyDistributeVerticalIcon, size, ...iconProps4 }),
|
|
4629
4703
|
showTooltip: true
|
|
4630
4704
|
}
|
|
@@ -4635,24 +4709,24 @@ var JustifyContentField = () => /* @__PURE__ */ React59.createElement(StylesFiel
|
|
|
4635
4709
|
var React60 = __toESM(require("react"));
|
|
4636
4710
|
var import_editor_controls30 = require("@elementor/editor-controls");
|
|
4637
4711
|
var import_icons17 = require("@elementor/icons");
|
|
4638
|
-
var
|
|
4639
|
-
var FLEX_WRAP_LABEL = (0,
|
|
4712
|
+
var import_i18n37 = require("@wordpress/i18n");
|
|
4713
|
+
var FLEX_WRAP_LABEL = (0, import_i18n37.__)("Wrap", "elementor");
|
|
4640
4714
|
var options6 = [
|
|
4641
4715
|
{
|
|
4642
4716
|
value: "nowrap",
|
|
4643
|
-
label: (0,
|
|
4717
|
+
label: (0, import_i18n37.__)("No wrap", "elementor"),
|
|
4644
4718
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowRightIcon, { fontSize: size }),
|
|
4645
4719
|
showTooltip: true
|
|
4646
4720
|
},
|
|
4647
4721
|
{
|
|
4648
4722
|
value: "wrap",
|
|
4649
|
-
label: (0,
|
|
4723
|
+
label: (0, import_i18n37.__)("Wrap", "elementor"),
|
|
4650
4724
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowBackIcon, { fontSize: size }),
|
|
4651
4725
|
showTooltip: true
|
|
4652
4726
|
},
|
|
4653
4727
|
{
|
|
4654
4728
|
value: "wrap-reverse",
|
|
4655
|
-
label: (0,
|
|
4729
|
+
label: (0, import_i18n37.__)("Reversed wrap", "elementor"),
|
|
4656
4730
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(import_icons17.ArrowForwardIcon, { fontSize: size }),
|
|
4657
4731
|
showTooltip: true
|
|
4658
4732
|
}
|
|
@@ -4662,8 +4736,8 @@ var WrapField = () => {
|
|
|
4662
4736
|
};
|
|
4663
4737
|
|
|
4664
4738
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4665
|
-
var DISPLAY_LABEL2 = (0,
|
|
4666
|
-
var FLEX_WRAP_LABEL2 = (0,
|
|
4739
|
+
var DISPLAY_LABEL2 = (0, import_i18n38.__)("Display", "elementor");
|
|
4740
|
+
var FLEX_WRAP_LABEL2 = (0, import_i18n38.__)("Flex wrap", "elementor");
|
|
4667
4741
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4668
4742
|
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = (0, import_locations3.createLocation)();
|
|
4669
4743
|
var LayoutSection = () => {
|
|
@@ -4674,7 +4748,7 @@ var LayoutSection = () => {
|
|
|
4674
4748
|
const isDisplayFlex = shouldDisplayFlexFields(display, displayPlaceholder);
|
|
4675
4749
|
const isDisplayGrid = "grid" === (display?.value ?? displayPlaceholder?.value);
|
|
4676
4750
|
const { element } = useElement();
|
|
4677
|
-
const parent = (0,
|
|
4751
|
+
const parent = (0, import_editor_elements13.useParentElement)(element.id);
|
|
4678
4752
|
const parentStyle = useComputedStyle(parent?.id || null);
|
|
4679
4753
|
const getParentStyleDirection = () => {
|
|
4680
4754
|
if ("flex" === parentStyle?.display) {
|
|
@@ -4694,8 +4768,8 @@ var FlexFields = () => {
|
|
|
4694
4768
|
return /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(FlexDirectionField, null), /* @__PURE__ */ React61.createElement(JustifyContentField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(WrapField, null), ["wrap", "wrap-reverse"].includes(flexWrap?.value) && /* @__PURE__ */ React61.createElement(AlignContentField, null));
|
|
4695
4769
|
};
|
|
4696
4770
|
var GridFields = () => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(GridOutlineField, null), /* @__PURE__ */ React61.createElement(GridSizeFields, null), /* @__PURE__ */ React61.createElement(GridAutoFlowField, null), /* @__PURE__ */ React61.createElement(GridFieldsSlot, null), /* @__PURE__ */ React61.createElement(StyleTabCollapsibleContent, { fields: ["grid-auto-rows", "grid-auto-columns"] }, /* @__PURE__ */ React61.createElement(GridAutoTrackFields, null)), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GapControlField, null), /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(GridJustifyItemsField, null), /* @__PURE__ */ React61.createElement(AlignItemsField, null));
|
|
4697
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls31.ControlFormLabel, null, (0,
|
|
4698
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls31.ControlFormLabel, null, (0,
|
|
4771
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls31.ControlFormLabel, null, (0, import_i18n38.__)("Flex child", "elementor")), /* @__PURE__ */ React61.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null), /* @__PURE__ */ React61.createElement(FlexSizeField, null));
|
|
4772
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(import_editor_controls31.ControlFormLabel, null, (0, import_i18n38.__)("Grid child", "elementor")), /* @__PURE__ */ React61.createElement(GridSpanFields, null), /* @__PURE__ */ React61.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null));
|
|
4699
4773
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4700
4774
|
const value = display?.value ?? local?.value;
|
|
4701
4775
|
if (!value) {
|
|
@@ -4709,7 +4783,7 @@ var React66 = __toESM(require("react"));
|
|
|
4709
4783
|
var import_react29 = require("react");
|
|
4710
4784
|
var import_session7 = require("@elementor/session");
|
|
4711
4785
|
var import_ui39 = require("@elementor/ui");
|
|
4712
|
-
var
|
|
4786
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
4713
4787
|
|
|
4714
4788
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4715
4789
|
var React62 = __toESM(require("react"));
|
|
@@ -4717,7 +4791,7 @@ var import_react27 = require("react");
|
|
|
4717
4791
|
var import_editor_controls32 = require("@elementor/editor-controls");
|
|
4718
4792
|
var import_icons18 = require("@elementor/icons");
|
|
4719
4793
|
var import_ui37 = require("@elementor/ui");
|
|
4720
|
-
var
|
|
4794
|
+
var import_i18n39 = require("@wordpress/i18n");
|
|
4721
4795
|
var InlineStartIcon2 = (0, import_ui37.withDirection)(import_icons18.SideLeftIcon);
|
|
4722
4796
|
var InlineEndIcon2 = (0, import_ui37.withDirection)(import_icons18.SideRightIcon);
|
|
4723
4797
|
var sideIcons = {
|
|
@@ -4726,19 +4800,19 @@ var sideIcons = {
|
|
|
4726
4800
|
"inset-inline-start": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4727
4801
|
"inset-inline-end": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4728
4802
|
};
|
|
4729
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4730
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0,
|
|
4803
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n39.__)("Right", "elementor") : (0, import_i18n39.__)("Left", "elementor");
|
|
4804
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? (0, import_i18n39.__)("Left", "elementor") : (0, import_i18n39.__)("Right", "elementor");
|
|
4731
4805
|
var DimensionsField = () => {
|
|
4732
4806
|
const { isSiteRtl } = useDirection();
|
|
4733
4807
|
const rowRefs = [(0, import_react27.useRef)(null), (0, import_react27.useRef)(null)];
|
|
4734
|
-
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label: (0,
|
|
4808
|
+
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label: (0, import_i18n39.__)("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React62.createElement(
|
|
4735
4809
|
DimensionField,
|
|
4736
4810
|
{
|
|
4737
4811
|
side: "inset-inline-end",
|
|
4738
4812
|
label: getInlineEndLabel(isSiteRtl),
|
|
4739
4813
|
rowRef: rowRefs[0]
|
|
4740
4814
|
}
|
|
4741
|
-
)), /* @__PURE__ */ React62.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label: (0,
|
|
4815
|
+
)), /* @__PURE__ */ React62.createElement(import_ui37.Stack, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label: (0, import_i18n39.__)("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React62.createElement(
|
|
4742
4816
|
DimensionField,
|
|
4743
4817
|
{
|
|
4744
4818
|
side: "inset-inline-start",
|
|
@@ -4765,8 +4839,8 @@ var DimensionField = ({
|
|
|
4765
4839
|
var React63 = __toESM(require("react"));
|
|
4766
4840
|
var import_react28 = require("react");
|
|
4767
4841
|
var import_editor_controls33 = require("@elementor/editor-controls");
|
|
4768
|
-
var
|
|
4769
|
-
var OFFSET_LABEL = (0,
|
|
4842
|
+
var import_i18n40 = require("@wordpress/i18n");
|
|
4843
|
+
var OFFSET_LABEL = (0, import_i18n40.__)("Anchor offset", "elementor");
|
|
4770
4844
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4771
4845
|
var OffsetField = () => {
|
|
4772
4846
|
const rowRef = (0, import_react28.useRef)(null);
|
|
@@ -4776,14 +4850,14 @@ var OffsetField = () => {
|
|
|
4776
4850
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4777
4851
|
var React64 = __toESM(require("react"));
|
|
4778
4852
|
var import_editor_controls34 = require("@elementor/editor-controls");
|
|
4779
|
-
var
|
|
4780
|
-
var POSITION_LABEL = (0,
|
|
4853
|
+
var import_i18n41 = require("@wordpress/i18n");
|
|
4854
|
+
var POSITION_LABEL = (0, import_i18n41.__)("Position", "elementor");
|
|
4781
4855
|
var positionOptions = [
|
|
4782
|
-
{ label: (0,
|
|
4783
|
-
{ label: (0,
|
|
4784
|
-
{ label: (0,
|
|
4785
|
-
{ label: (0,
|
|
4786
|
-
{ label: (0,
|
|
4856
|
+
{ label: (0, import_i18n41.__)("Static", "elementor"), value: "static" },
|
|
4857
|
+
{ label: (0, import_i18n41.__)("Relative", "elementor"), value: "relative" },
|
|
4858
|
+
{ label: (0, import_i18n41.__)("Absolute", "elementor"), value: "absolute" },
|
|
4859
|
+
{ label: (0, import_i18n41.__)("Fixed", "elementor"), value: "fixed" },
|
|
4860
|
+
{ label: (0, import_i18n41.__)("Sticky", "elementor"), value: "sticky" }
|
|
4787
4861
|
];
|
|
4788
4862
|
var PositionField = () => {
|
|
4789
4863
|
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(import_editor_controls34.SelectControl, { options: positionOptions })));
|
|
@@ -4794,11 +4868,11 @@ var React65 = __toESM(require("react"));
|
|
|
4794
4868
|
var import_editor_controls35 = require("@elementor/editor-controls");
|
|
4795
4869
|
var import_icons19 = require("@elementor/icons");
|
|
4796
4870
|
var import_ui38 = require("@elementor/ui");
|
|
4797
|
-
var
|
|
4798
|
-
var Z_INDEX_LABEL = (0,
|
|
4871
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
4872
|
+
var Z_INDEX_LABEL = (0, import_i18n42.__)("Z-index", "elementor");
|
|
4799
4873
|
var ZIndexField = ({ disabled }) => {
|
|
4800
4874
|
const StyleField = /* @__PURE__ */ React65.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(import_editor_controls35.NumberControl, { disabled })));
|
|
4801
|
-
const content = /* @__PURE__ */ React65.createElement(import_ui38.Alert, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(import_icons19.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(import_ui38.AlertTitle, null, (0,
|
|
4875
|
+
const content = /* @__PURE__ */ React65.createElement(import_ui38.Alert, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(import_icons19.InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(import_ui38.AlertTitle, null, (0, import_i18n42.__)("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(import_ui38.Box, { component: "span" }, (0, import_i18n42.__)(
|
|
4802
4876
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4803
4877
|
"elementor"
|
|
4804
4878
|
)));
|
|
@@ -4816,8 +4890,8 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4816
4890
|
|
|
4817
4891
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4818
4892
|
var POSITION_STATIC = "static";
|
|
4819
|
-
var POSITION_LABEL2 = (0,
|
|
4820
|
-
var DIMENSIONS_LABEL = (0,
|
|
4893
|
+
var POSITION_LABEL2 = (0, import_i18n43.__)("Position", "elementor");
|
|
4894
|
+
var DIMENSIONS_LABEL = (0, import_i18n43.__)("Dimensions", "elementor");
|
|
4821
4895
|
var DEPENDENT_PROP_NAMES = [
|
|
4822
4896
|
"inset-block-start",
|
|
4823
4897
|
"inset-block-end",
|
|
@@ -4900,19 +4974,19 @@ var React69 = __toESM(require("react"));
|
|
|
4900
4974
|
var import_react30 = require("react");
|
|
4901
4975
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4902
4976
|
var import_ui40 = require("@elementor/ui");
|
|
4903
|
-
var
|
|
4977
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
4904
4978
|
|
|
4905
4979
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4906
4980
|
var React67 = __toESM(require("react"));
|
|
4907
4981
|
var import_editor_controls36 = require("@elementor/editor-controls");
|
|
4908
|
-
var
|
|
4909
|
-
var OBJECT_FIT_LABEL = (0,
|
|
4982
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
4983
|
+
var OBJECT_FIT_LABEL = (0, import_i18n44.__)("Object fit", "elementor");
|
|
4910
4984
|
var positionOptions2 = [
|
|
4911
|
-
{ label: (0,
|
|
4912
|
-
{ label: (0,
|
|
4913
|
-
{ label: (0,
|
|
4914
|
-
{ label: (0,
|
|
4915
|
-
{ label: (0,
|
|
4985
|
+
{ label: (0, import_i18n44.__)("Fill", "elementor"), value: "fill" },
|
|
4986
|
+
{ label: (0, import_i18n44.__)("Cover", "elementor"), value: "cover" },
|
|
4987
|
+
{ label: (0, import_i18n44.__)("Contain", "elementor"), value: "contain" },
|
|
4988
|
+
{ label: (0, import_i18n44.__)("None", "elementor"), value: "none" },
|
|
4989
|
+
{ label: (0, import_i18n44.__)("Scale down", "elementor"), value: "scale-down" }
|
|
4916
4990
|
];
|
|
4917
4991
|
var ObjectFitField = () => {
|
|
4918
4992
|
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(import_editor_controls36.SelectControl, { options: positionOptions2 })));
|
|
@@ -4922,24 +4996,24 @@ var ObjectFitField = () => {
|
|
|
4922
4996
|
var React68 = __toESM(require("react"));
|
|
4923
4997
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4924
4998
|
var import_icons20 = require("@elementor/icons");
|
|
4925
|
-
var
|
|
4926
|
-
var OVERFLOW_LABEL = (0,
|
|
4999
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
5000
|
+
var OVERFLOW_LABEL = (0, import_i18n45.__)("Overflow", "elementor");
|
|
4927
5001
|
var options7 = [
|
|
4928
5002
|
{
|
|
4929
5003
|
value: "visible",
|
|
4930
|
-
label: (0,
|
|
5004
|
+
label: (0, import_i18n45.__)("Visible", "elementor"),
|
|
4931
5005
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.EyeIcon, { fontSize: size }),
|
|
4932
5006
|
showTooltip: true
|
|
4933
5007
|
},
|
|
4934
5008
|
{
|
|
4935
5009
|
value: "hidden",
|
|
4936
|
-
label: (0,
|
|
5010
|
+
label: (0, import_i18n45.__)("Hidden", "elementor"),
|
|
4937
5011
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.EyeOffIcon, { fontSize: size }),
|
|
4938
5012
|
showTooltip: true
|
|
4939
5013
|
},
|
|
4940
5014
|
{
|
|
4941
5015
|
value: "auto",
|
|
4942
|
-
label: (0,
|
|
5016
|
+
label: (0, import_i18n45.__)("Auto", "elementor"),
|
|
4943
5017
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(import_icons20.LetterAIcon, { fontSize: size }),
|
|
4944
5018
|
showTooltip: true
|
|
4945
5019
|
}
|
|
@@ -4953,38 +5027,38 @@ var CssSizeProps = [
|
|
|
4953
5027
|
[
|
|
4954
5028
|
{
|
|
4955
5029
|
bind: "width",
|
|
4956
|
-
label: (0,
|
|
5030
|
+
label: (0, import_i18n46.__)("Width", "elementor")
|
|
4957
5031
|
},
|
|
4958
5032
|
{
|
|
4959
5033
|
bind: "height",
|
|
4960
|
-
label: (0,
|
|
5034
|
+
label: (0, import_i18n46.__)("Height", "elementor")
|
|
4961
5035
|
}
|
|
4962
5036
|
],
|
|
4963
5037
|
[
|
|
4964
5038
|
{
|
|
4965
5039
|
bind: "min-width",
|
|
4966
|
-
label: (0,
|
|
5040
|
+
label: (0, import_i18n46.__)("Min width", "elementor")
|
|
4967
5041
|
},
|
|
4968
5042
|
{
|
|
4969
5043
|
bind: "min-height",
|
|
4970
|
-
label: (0,
|
|
5044
|
+
label: (0, import_i18n46.__)("Min height", "elementor")
|
|
4971
5045
|
}
|
|
4972
5046
|
],
|
|
4973
5047
|
[
|
|
4974
5048
|
{
|
|
4975
5049
|
bind: "max-width",
|
|
4976
|
-
label: (0,
|
|
5050
|
+
label: (0, import_i18n46.__)("Max width", "elementor")
|
|
4977
5051
|
},
|
|
4978
5052
|
{
|
|
4979
5053
|
bind: "max-height",
|
|
4980
|
-
label: (0,
|
|
5054
|
+
label: (0, import_i18n46.__)("Max height", "elementor")
|
|
4981
5055
|
}
|
|
4982
5056
|
]
|
|
4983
5057
|
];
|
|
4984
|
-
var ASPECT_RATIO_LABEL = (0,
|
|
5058
|
+
var ASPECT_RATIO_LABEL = (0, import_i18n46.__)("Aspect Ratio", "elementor");
|
|
4985
5059
|
var SizeSection = () => {
|
|
4986
5060
|
const gridRowRefs = [(0, import_react30.useRef)(null), (0, import_react30.useRef)(null), (0, import_react30.useRef)(null)];
|
|
4987
|
-
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(import_ui40.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(import_ui40.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React69.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(import_ui40.Stack, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(import_ui40.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(import_editor_controls38.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName: (0,
|
|
5061
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(import_ui40.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(import_ui40.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React69.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(import_ui40.Stack, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(import_ui40.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(import_editor_controls38.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n46.__)("Object position", "elementor") }, /* @__PURE__ */ React69.createElement(import_ui40.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(import_editor_controls38.PositionControl, null))))));
|
|
4988
5062
|
};
|
|
4989
5063
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4990
5064
|
return /* @__PURE__ */ React69.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React69.createElement(import_ui40.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React69.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, label)), /* @__PURE__ */ React69.createElement(import_ui40.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(import_editor_controls38.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
@@ -4993,9 +5067,9 @@ var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
|
4993
5067
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
4994
5068
|
var React70 = __toESM(require("react"));
|
|
4995
5069
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4996
|
-
var
|
|
4997
|
-
var MARGIN_LABEL = (0,
|
|
4998
|
-
var PADDING_LABEL = (0,
|
|
5070
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
5071
|
+
var MARGIN_LABEL = (0, import_i18n47.__)("Margin", "elementor");
|
|
5072
|
+
var PADDING_LABEL = (0, import_i18n47.__)("Padding", "elementor");
|
|
4999
5073
|
var SpacingSection = () => {
|
|
5000
5074
|
const { isSiteRtl } = useDirection();
|
|
5001
5075
|
return /* @__PURE__ */ React70.createElement(SectionContent, null, /* @__PURE__ */ React70.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
@@ -5014,8 +5088,8 @@ var React87 = __toESM(require("react"));
|
|
|
5014
5088
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
5015
5089
|
var React71 = __toESM(require("react"));
|
|
5016
5090
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
5017
|
-
var
|
|
5018
|
-
var COLUMN_COUNT_LABEL = (0,
|
|
5091
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
5092
|
+
var COLUMN_COUNT_LABEL = (0, import_i18n48.__)("Columns", "elementor");
|
|
5019
5093
|
var ColumnCountField = () => {
|
|
5020
5094
|
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(import_editor_controls40.NumberControl, { shouldForceInt: true, min: 0, step: 1 })));
|
|
5021
5095
|
};
|
|
@@ -5024,8 +5098,8 @@ var ColumnCountField = () => {
|
|
|
5024
5098
|
var React72 = __toESM(require("react"));
|
|
5025
5099
|
var import_react31 = require("react");
|
|
5026
5100
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
5027
|
-
var
|
|
5028
|
-
var COLUMN_GAP_LABEL = (0,
|
|
5101
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
5102
|
+
var COLUMN_GAP_LABEL = (0, import_i18n49.__)("Column gap", "elementor");
|
|
5029
5103
|
var ColumnGapField = () => {
|
|
5030
5104
|
const rowRef = (0, import_react31.useRef)(null);
|
|
5031
5105
|
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "column-gap", propDisplayName: COLUMN_GAP_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: COLUMN_GAP_LABEL, ref: rowRef }, /* @__PURE__ */ React72.createElement(import_editor_controls41.SizeControl, { anchorRef: rowRef })));
|
|
@@ -5035,8 +5109,8 @@ var ColumnGapField = () => {
|
|
|
5035
5109
|
var React73 = __toESM(require("react"));
|
|
5036
5110
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
5037
5111
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
5038
|
-
var
|
|
5039
|
-
var FONT_FAMILY_LABEL = (0,
|
|
5112
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
5113
|
+
var FONT_FAMILY_LABEL = (0, import_i18n50.__)("Font family", "elementor");
|
|
5040
5114
|
var FontFamilyField = () => {
|
|
5041
5115
|
const fontFamilies = (0, import_editor_controls42.useFontFamilies)();
|
|
5042
5116
|
const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
|
|
@@ -5057,8 +5131,8 @@ var FontFamilyField = () => {
|
|
|
5057
5131
|
var React74 = __toESM(require("react"));
|
|
5058
5132
|
var import_react32 = require("react");
|
|
5059
5133
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
5060
|
-
var
|
|
5061
|
-
var FONT_SIZE_LABEL = (0,
|
|
5134
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
5135
|
+
var FONT_SIZE_LABEL = (0, import_i18n51.__)("Font size", "elementor");
|
|
5062
5136
|
var FontSizeField = () => {
|
|
5063
5137
|
const rowRef = (0, import_react32.useRef)(null);
|
|
5064
5138
|
return /* @__PURE__ */ React74.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React74.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React74.createElement(import_editor_controls43.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
@@ -5068,18 +5142,18 @@ var FontSizeField = () => {
|
|
|
5068
5142
|
var React75 = __toESM(require("react"));
|
|
5069
5143
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
5070
5144
|
var import_icons21 = require("@elementor/icons");
|
|
5071
|
-
var
|
|
5072
|
-
var FONT_STYLE_LABEL = (0,
|
|
5145
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
5146
|
+
var FONT_STYLE_LABEL = (0, import_i18n52.__)("Font style", "elementor");
|
|
5073
5147
|
var options8 = [
|
|
5074
5148
|
{
|
|
5075
5149
|
value: "normal",
|
|
5076
|
-
label: (0,
|
|
5150
|
+
label: (0, import_i18n52.__)("Normal", "elementor"),
|
|
5077
5151
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons21.MinusIcon, { fontSize: size }),
|
|
5078
5152
|
showTooltip: true
|
|
5079
5153
|
},
|
|
5080
5154
|
{
|
|
5081
5155
|
value: "italic",
|
|
5082
|
-
label: (0,
|
|
5156
|
+
label: (0, import_i18n52.__)("Italic", "elementor"),
|
|
5083
5157
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(import_icons21.ItalicIcon, { fontSize: size }),
|
|
5084
5158
|
showTooltip: true
|
|
5085
5159
|
}
|
|
@@ -5091,18 +5165,18 @@ var FontStyleField = () => {
|
|
|
5091
5165
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5092
5166
|
var React76 = __toESM(require("react"));
|
|
5093
5167
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
5094
|
-
var
|
|
5095
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
5168
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
5169
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n53.__)("Font weight", "elementor");
|
|
5096
5170
|
var fontWeightOptions = [
|
|
5097
|
-
{ value: "100", label: (0,
|
|
5098
|
-
{ value: "200", label: (0,
|
|
5099
|
-
{ value: "300", label: (0,
|
|
5100
|
-
{ value: "400", label: (0,
|
|
5101
|
-
{ value: "500", label: (0,
|
|
5102
|
-
{ value: "600", label: (0,
|
|
5103
|
-
{ value: "700", label: (0,
|
|
5104
|
-
{ value: "800", label: (0,
|
|
5105
|
-
{ value: "900", label: (0,
|
|
5171
|
+
{ value: "100", label: (0, import_i18n53.__)("100 - Thin", "elementor") },
|
|
5172
|
+
{ value: "200", label: (0, import_i18n53.__)("200 - Extra light", "elementor") },
|
|
5173
|
+
{ value: "300", label: (0, import_i18n53.__)("300 - Light", "elementor") },
|
|
5174
|
+
{ value: "400", label: (0, import_i18n53.__)("400 - Normal", "elementor") },
|
|
5175
|
+
{ value: "500", label: (0, import_i18n53.__)("500 - Medium", "elementor") },
|
|
5176
|
+
{ value: "600", label: (0, import_i18n53.__)("600 - Semi bold", "elementor") },
|
|
5177
|
+
{ value: "700", label: (0, import_i18n53.__)("700 - Bold", "elementor") },
|
|
5178
|
+
{ value: "800", label: (0, import_i18n53.__)("800 - Extra bold", "elementor") },
|
|
5179
|
+
{ value: "900", label: (0, import_i18n53.__)("900 - Black", "elementor") }
|
|
5106
5180
|
];
|
|
5107
5181
|
var FontWeightField = () => {
|
|
5108
5182
|
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(import_editor_controls45.SelectControl, { options: fontWeightOptions })));
|
|
@@ -5112,8 +5186,8 @@ var FontWeightField = () => {
|
|
|
5112
5186
|
var React77 = __toESM(require("react"));
|
|
5113
5187
|
var import_react33 = require("react");
|
|
5114
5188
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
5115
|
-
var
|
|
5116
|
-
var LETTER_SPACING_LABEL = (0,
|
|
5189
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
5190
|
+
var LETTER_SPACING_LABEL = (0, import_i18n54.__)("Letter spacing", "elementor");
|
|
5117
5191
|
var LetterSpacingField = () => {
|
|
5118
5192
|
const rowRef = (0, import_react33.useRef)(null);
|
|
5119
5193
|
return /* @__PURE__ */ React77.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React77.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React77.createElement(import_editor_controls46.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
@@ -5123,8 +5197,8 @@ var LetterSpacingField = () => {
|
|
|
5123
5197
|
var React78 = __toESM(require("react"));
|
|
5124
5198
|
var import_react34 = require("react");
|
|
5125
5199
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
5126
|
-
var
|
|
5127
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
5200
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
5201
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n55.__)("Line height", "elementor");
|
|
5128
5202
|
var LineHeightField = () => {
|
|
5129
5203
|
const rowRef = (0, import_react34.useRef)(null);
|
|
5130
5204
|
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(import_editor_controls47.SizeControl, { anchorRef: rowRef })));
|
|
@@ -5135,32 +5209,32 @@ var React79 = __toESM(require("react"));
|
|
|
5135
5209
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
5136
5210
|
var import_icons22 = require("@elementor/icons");
|
|
5137
5211
|
var import_ui41 = require("@elementor/ui");
|
|
5138
|
-
var
|
|
5139
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
5212
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
5213
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n56.__)("Text align", "elementor");
|
|
5140
5214
|
var AlignStartIcon = (0, import_ui41.withDirection)(import_icons22.AlignLeftIcon);
|
|
5141
5215
|
var AlignEndIcon = (0, import_ui41.withDirection)(import_icons22.AlignRightIcon);
|
|
5142
5216
|
var options9 = [
|
|
5143
5217
|
{
|
|
5144
5218
|
value: "start",
|
|
5145
|
-
label: (0,
|
|
5219
|
+
label: (0, import_i18n56.__)("Start", "elementor"),
|
|
5146
5220
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignStartIcon, { fontSize: size }),
|
|
5147
5221
|
showTooltip: true
|
|
5148
5222
|
},
|
|
5149
5223
|
{
|
|
5150
5224
|
value: "center",
|
|
5151
|
-
label: (0,
|
|
5225
|
+
label: (0, import_i18n56.__)("Center", "elementor"),
|
|
5152
5226
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons22.AlignCenterIcon, { fontSize: size }),
|
|
5153
5227
|
showTooltip: true
|
|
5154
5228
|
},
|
|
5155
5229
|
{
|
|
5156
5230
|
value: "end",
|
|
5157
|
-
label: (0,
|
|
5231
|
+
label: (0, import_i18n56.__)("End", "elementor"),
|
|
5158
5232
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignEndIcon, { fontSize: size }),
|
|
5159
5233
|
showTooltip: true
|
|
5160
5234
|
},
|
|
5161
5235
|
{
|
|
5162
5236
|
value: "justify",
|
|
5163
|
-
label: (0,
|
|
5237
|
+
label: (0, import_i18n56.__)("Justify", "elementor"),
|
|
5164
5238
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(import_icons22.AlignJustifiedIcon, { fontSize: size }),
|
|
5165
5239
|
showTooltip: true
|
|
5166
5240
|
}
|
|
@@ -5172,8 +5246,8 @@ var TextAlignmentField = () => {
|
|
|
5172
5246
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5173
5247
|
var React80 = __toESM(require("react"));
|
|
5174
5248
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
5175
|
-
var
|
|
5176
|
-
var TEXT_COLOR_LABEL = (0,
|
|
5249
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
5250
|
+
var TEXT_COLOR_LABEL = (0, import_i18n57.__)("Text color", "elementor");
|
|
5177
5251
|
var TextColorField = () => {
|
|
5178
5252
|
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(import_editor_controls49.ColorControl, { id: "text-color-control" })));
|
|
5179
5253
|
};
|
|
@@ -5182,31 +5256,31 @@ var TextColorField = () => {
|
|
|
5182
5256
|
var React81 = __toESM(require("react"));
|
|
5183
5257
|
var import_editor_controls50 = require("@elementor/editor-controls");
|
|
5184
5258
|
var import_icons23 = require("@elementor/icons");
|
|
5185
|
-
var
|
|
5186
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
5259
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
5260
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n58.__)("Line decoration", "elementor");
|
|
5187
5261
|
var options10 = [
|
|
5188
5262
|
{
|
|
5189
5263
|
value: "none",
|
|
5190
|
-
label: (0,
|
|
5264
|
+
label: (0, import_i18n58.__)("None", "elementor"),
|
|
5191
5265
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.MinusIcon, { fontSize: size }),
|
|
5192
5266
|
showTooltip: true,
|
|
5193
5267
|
exclusive: true
|
|
5194
5268
|
},
|
|
5195
5269
|
{
|
|
5196
5270
|
value: "underline",
|
|
5197
|
-
label: (0,
|
|
5271
|
+
label: (0, import_i18n58.__)("Underline", "elementor"),
|
|
5198
5272
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.UnderlineIcon, { fontSize: size }),
|
|
5199
5273
|
showTooltip: true
|
|
5200
5274
|
},
|
|
5201
5275
|
{
|
|
5202
5276
|
value: "line-through",
|
|
5203
|
-
label: (0,
|
|
5277
|
+
label: (0, import_i18n58.__)("Line-through", "elementor"),
|
|
5204
5278
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.StrikethroughIcon, { fontSize: size }),
|
|
5205
5279
|
showTooltip: true
|
|
5206
5280
|
},
|
|
5207
5281
|
{
|
|
5208
5282
|
value: "overline",
|
|
5209
|
-
label: (0,
|
|
5283
|
+
label: (0, import_i18n58.__)("Overline", "elementor"),
|
|
5210
5284
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(import_icons23.OverlineIcon, { fontSize: size }),
|
|
5211
5285
|
showTooltip: true
|
|
5212
5286
|
}
|
|
@@ -5217,18 +5291,18 @@ var TextDecorationField = () => /* @__PURE__ */ React81.createElement(StylesFiel
|
|
|
5217
5291
|
var React82 = __toESM(require("react"));
|
|
5218
5292
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
5219
5293
|
var import_icons24 = require("@elementor/icons");
|
|
5220
|
-
var
|
|
5221
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
5294
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
5295
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n59.__)("Direction", "elementor");
|
|
5222
5296
|
var options11 = [
|
|
5223
5297
|
{
|
|
5224
5298
|
value: "ltr",
|
|
5225
|
-
label: (0,
|
|
5299
|
+
label: (0, import_i18n59.__)("Left to right", "elementor"),
|
|
5226
5300
|
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.TextDirectionLtrIcon, { fontSize: size }),
|
|
5227
5301
|
showTooltip: true
|
|
5228
5302
|
},
|
|
5229
5303
|
{
|
|
5230
5304
|
value: "rtl",
|
|
5231
|
-
label: (0,
|
|
5305
|
+
label: (0, import_i18n59.__)("Right to left", "elementor"),
|
|
5232
5306
|
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(import_icons24.TextDirectionRtlIcon, { fontSize: size }),
|
|
5233
5307
|
showTooltip: true
|
|
5234
5308
|
}
|
|
@@ -5240,7 +5314,7 @@ var TextDirectionField = () => {
|
|
|
5240
5314
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5241
5315
|
var React84 = __toESM(require("react"));
|
|
5242
5316
|
var import_editor_controls52 = require("@elementor/editor-controls");
|
|
5243
|
-
var
|
|
5317
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
5244
5318
|
|
|
5245
5319
|
// src/components/add-or-remove-content.tsx
|
|
5246
5320
|
var React83 = __toESM(require("react"));
|
|
@@ -5287,7 +5361,7 @@ var initTextStroke = {
|
|
|
5287
5361
|
}
|
|
5288
5362
|
}
|
|
5289
5363
|
};
|
|
5290
|
-
var TEXT_STROKE_LABEL = (0,
|
|
5364
|
+
var TEXT_STROKE_LABEL = (0, import_i18n60.__)("Text stroke", "elementor");
|
|
5291
5365
|
var TextStrokeField = () => {
|
|
5292
5366
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5293
5367
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5316,30 +5390,30 @@ var TextStrokeField = () => {
|
|
|
5316
5390
|
var React85 = __toESM(require("react"));
|
|
5317
5391
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5318
5392
|
var import_icons26 = require("@elementor/icons");
|
|
5319
|
-
var
|
|
5320
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
5393
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
5394
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n61.__)("Text transform", "elementor");
|
|
5321
5395
|
var options12 = [
|
|
5322
5396
|
{
|
|
5323
5397
|
value: "none",
|
|
5324
|
-
label: (0,
|
|
5398
|
+
label: (0, import_i18n61.__)("None", "elementor"),
|
|
5325
5399
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.MinusIcon, { fontSize: size }),
|
|
5326
5400
|
showTooltip: true
|
|
5327
5401
|
},
|
|
5328
5402
|
{
|
|
5329
5403
|
value: "capitalize",
|
|
5330
|
-
label: (0,
|
|
5404
|
+
label: (0, import_i18n61.__)("Capitalize", "elementor"),
|
|
5331
5405
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseIcon, { fontSize: size }),
|
|
5332
5406
|
showTooltip: true
|
|
5333
5407
|
},
|
|
5334
5408
|
{
|
|
5335
5409
|
value: "uppercase",
|
|
5336
|
-
label: (0,
|
|
5410
|
+
label: (0, import_i18n61.__)("Uppercase", "elementor"),
|
|
5337
5411
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseUpperIcon, { fontSize: size }),
|
|
5338
5412
|
showTooltip: true
|
|
5339
5413
|
},
|
|
5340
5414
|
{
|
|
5341
5415
|
value: "lowercase",
|
|
5342
|
-
label: (0,
|
|
5416
|
+
label: (0, import_i18n61.__)("Lowercase", "elementor"),
|
|
5343
5417
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(import_icons26.LetterCaseLowerIcon, { fontSize: size }),
|
|
5344
5418
|
showTooltip: true
|
|
5345
5419
|
}
|
|
@@ -5350,8 +5424,8 @@ var TransformField = () => /* @__PURE__ */ React85.createElement(StylesField, {
|
|
|
5350
5424
|
var React86 = __toESM(require("react"));
|
|
5351
5425
|
var import_react35 = require("react");
|
|
5352
5426
|
var import_editor_controls54 = require("@elementor/editor-controls");
|
|
5353
|
-
var
|
|
5354
|
-
var WORD_SPACING_LABEL = (0,
|
|
5427
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
5428
|
+
var WORD_SPACING_LABEL = (0, import_i18n62.__)("Word spacing", "elementor");
|
|
5355
5429
|
var WordSpacingField = () => {
|
|
5356
5430
|
const rowRef = (0, import_react35.useRef)(null);
|
|
5357
5431
|
return /* @__PURE__ */ React86.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React86.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React86.createElement(import_editor_controls54.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
@@ -5378,6 +5452,107 @@ var TypographySection = () => {
|
|
|
5378
5452
|
));
|
|
5379
5453
|
};
|
|
5380
5454
|
|
|
5455
|
+
// src/components/style-sections-definition.ts
|
|
5456
|
+
var STYLE_SECTIONS = [
|
|
5457
|
+
{
|
|
5458
|
+
name: "Layout",
|
|
5459
|
+
title: (0, import_i18n63.__)("Layout", "elementor"),
|
|
5460
|
+
component: LayoutSection,
|
|
5461
|
+
fields: [
|
|
5462
|
+
"display",
|
|
5463
|
+
"flex-direction",
|
|
5464
|
+
"flex-wrap",
|
|
5465
|
+
"justify-content",
|
|
5466
|
+
"align-items",
|
|
5467
|
+
"align-content",
|
|
5468
|
+
"align-self",
|
|
5469
|
+
"gap",
|
|
5470
|
+
"order",
|
|
5471
|
+
"grid-column",
|
|
5472
|
+
"grid-row",
|
|
5473
|
+
"grid-auto-rows",
|
|
5474
|
+
"grid-auto-columns"
|
|
5475
|
+
]
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
name: "Spacing",
|
|
5479
|
+
title: (0, import_i18n63.__)("Spacing", "elementor"),
|
|
5480
|
+
component: SpacingSection,
|
|
5481
|
+
fields: ["margin", "padding"]
|
|
5482
|
+
},
|
|
5483
|
+
{
|
|
5484
|
+
name: "Size",
|
|
5485
|
+
title: (0, import_i18n63.__)("Size", "elementor"),
|
|
5486
|
+
component: SizeSection,
|
|
5487
|
+
fields: [
|
|
5488
|
+
"width",
|
|
5489
|
+
"min-width",
|
|
5490
|
+
"max-width",
|
|
5491
|
+
"height",
|
|
5492
|
+
"min-height",
|
|
5493
|
+
"max-height",
|
|
5494
|
+
"overflow",
|
|
5495
|
+
"aspect-ratio",
|
|
5496
|
+
"object-fit"
|
|
5497
|
+
]
|
|
5498
|
+
},
|
|
5499
|
+
{
|
|
5500
|
+
name: "Position",
|
|
5501
|
+
title: (0, import_i18n63.__)("Position", "elementor"),
|
|
5502
|
+
component: PositionSection,
|
|
5503
|
+
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5504
|
+
},
|
|
5505
|
+
{
|
|
5506
|
+
name: "Typography",
|
|
5507
|
+
title: (0, import_i18n63.__)("Typography", "elementor"),
|
|
5508
|
+
component: TypographySection,
|
|
5509
|
+
fields: [
|
|
5510
|
+
"font-family",
|
|
5511
|
+
"font-weight",
|
|
5512
|
+
"font-size",
|
|
5513
|
+
"text-align",
|
|
5514
|
+
"color",
|
|
5515
|
+
"line-height",
|
|
5516
|
+
"letter-spacing",
|
|
5517
|
+
"word-spacing",
|
|
5518
|
+
"column-count",
|
|
5519
|
+
"text-decoration",
|
|
5520
|
+
"text-transform",
|
|
5521
|
+
"direction",
|
|
5522
|
+
"font-style",
|
|
5523
|
+
"stroke"
|
|
5524
|
+
]
|
|
5525
|
+
},
|
|
5526
|
+
{
|
|
5527
|
+
name: "Background",
|
|
5528
|
+
title: (0, import_i18n63.__)("Background", "elementor"),
|
|
5529
|
+
component: BackgroundSection,
|
|
5530
|
+
fields: ["background"]
|
|
5531
|
+
},
|
|
5532
|
+
{
|
|
5533
|
+
name: "Border",
|
|
5534
|
+
title: (0, import_i18n63.__)("Border", "elementor"),
|
|
5535
|
+
component: BorderSection,
|
|
5536
|
+
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5537
|
+
},
|
|
5538
|
+
{
|
|
5539
|
+
name: "Effects",
|
|
5540
|
+
title: (0, import_i18n63.__)("Effects", "elementor"),
|
|
5541
|
+
component: EffectsSection,
|
|
5542
|
+
fields: [
|
|
5543
|
+
"mix-blend-mode",
|
|
5544
|
+
"box-shadow",
|
|
5545
|
+
"opacity",
|
|
5546
|
+
"transform",
|
|
5547
|
+
"filter",
|
|
5548
|
+
"backdrop-filter",
|
|
5549
|
+
"transform-origin",
|
|
5550
|
+
"transition"
|
|
5551
|
+
]
|
|
5552
|
+
}
|
|
5553
|
+
];
|
|
5554
|
+
var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
|
|
5555
|
+
|
|
5381
5556
|
// src/components/style-tab-section.tsx
|
|
5382
5557
|
var React88 = __toESM(require("react"));
|
|
5383
5558
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
@@ -5398,6 +5573,22 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5398
5573
|
);
|
|
5399
5574
|
};
|
|
5400
5575
|
|
|
5576
|
+
// src/components/style-sections.tsx
|
|
5577
|
+
var StyleSections = () => {
|
|
5578
|
+
return /* @__PURE__ */ React89.createElement(React89.Fragment, null, STYLE_SECTIONS.map((section) => /* @__PURE__ */ React89.createElement(
|
|
5579
|
+
StyleTabSection,
|
|
5580
|
+
{
|
|
5581
|
+
key: section.name,
|
|
5582
|
+
section: {
|
|
5583
|
+
component: section.component,
|
|
5584
|
+
name: section.name,
|
|
5585
|
+
title: section.title
|
|
5586
|
+
},
|
|
5587
|
+
fields: section.fields
|
|
5588
|
+
}
|
|
5589
|
+
)));
|
|
5590
|
+
};
|
|
5591
|
+
|
|
5401
5592
|
// src/components/style-tab.tsx
|
|
5402
5593
|
var TABS_HEADER_HEIGHT = "37px";
|
|
5403
5594
|
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = (0, import_locations4.createLocation)();
|
|
@@ -5416,7 +5607,7 @@ var StyleTab = () => {
|
|
|
5416
5607
|
if (!currentClassesProp) {
|
|
5417
5608
|
return null;
|
|
5418
5609
|
}
|
|
5419
|
-
return /* @__PURE__ */
|
|
5610
|
+
return /* @__PURE__ */ React90.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React90.createElement(
|
|
5420
5611
|
StyleProvider,
|
|
5421
5612
|
{
|
|
5422
5613
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5427,140 +5618,21 @@ var StyleTab = () => {
|
|
|
5427
5618
|
},
|
|
5428
5619
|
setMetaState: setActiveStyleState
|
|
5429
5620
|
},
|
|
5430
|
-
/* @__PURE__ */
|
|
5431
|
-
StyleTabSection,
|
|
5432
|
-
{
|
|
5433
|
-
section: {
|
|
5434
|
-
component: LayoutSection,
|
|
5435
|
-
name: "Layout",
|
|
5436
|
-
title: (0, import_i18n62.__)("Layout", "elementor")
|
|
5437
|
-
},
|
|
5438
|
-
fields: [
|
|
5439
|
-
"display",
|
|
5440
|
-
"flex-direction",
|
|
5441
|
-
"flex-wrap",
|
|
5442
|
-
"justify-content",
|
|
5443
|
-
"align-items",
|
|
5444
|
-
"align-content",
|
|
5445
|
-
"align-self",
|
|
5446
|
-
"gap",
|
|
5447
|
-
"order",
|
|
5448
|
-
"grid-column",
|
|
5449
|
-
"grid-row",
|
|
5450
|
-
"grid-auto-rows",
|
|
5451
|
-
"grid-auto-columns"
|
|
5452
|
-
]
|
|
5453
|
-
}
|
|
5454
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5455
|
-
StyleTabSection,
|
|
5456
|
-
{
|
|
5457
|
-
section: {
|
|
5458
|
-
component: SpacingSection,
|
|
5459
|
-
name: "Spacing",
|
|
5460
|
-
title: (0, import_i18n62.__)("Spacing", "elementor")
|
|
5461
|
-
},
|
|
5462
|
-
fields: ["margin", "padding"]
|
|
5463
|
-
}
|
|
5464
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5465
|
-
StyleTabSection,
|
|
5466
|
-
{
|
|
5467
|
-
section: {
|
|
5468
|
-
component: SizeSection,
|
|
5469
|
-
name: "Size",
|
|
5470
|
-
title: (0, import_i18n62.__)("Size", "elementor")
|
|
5471
|
-
},
|
|
5472
|
-
fields: [
|
|
5473
|
-
"width",
|
|
5474
|
-
"min-width",
|
|
5475
|
-
"max-width",
|
|
5476
|
-
"height",
|
|
5477
|
-
"min-height",
|
|
5478
|
-
"max-height",
|
|
5479
|
-
"overflow",
|
|
5480
|
-
"aspect-ratio",
|
|
5481
|
-
"object-fit"
|
|
5482
|
-
]
|
|
5483
|
-
}
|
|
5484
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5485
|
-
StyleTabSection,
|
|
5486
|
-
{
|
|
5487
|
-
section: {
|
|
5488
|
-
component: PositionSection,
|
|
5489
|
-
name: "Position",
|
|
5490
|
-
title: (0, import_i18n62.__)("Position", "elementor")
|
|
5491
|
-
},
|
|
5492
|
-
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5493
|
-
}
|
|
5494
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5495
|
-
StyleTabSection,
|
|
5496
|
-
{
|
|
5497
|
-
section: {
|
|
5498
|
-
component: TypographySection,
|
|
5499
|
-
name: "Typography",
|
|
5500
|
-
title: (0, import_i18n62.__)("Typography", "elementor")
|
|
5501
|
-
},
|
|
5502
|
-
fields: [
|
|
5503
|
-
"font-family",
|
|
5504
|
-
"font-weight",
|
|
5505
|
-
"font-size",
|
|
5506
|
-
"text-align",
|
|
5507
|
-
"color",
|
|
5508
|
-
"line-height",
|
|
5509
|
-
"letter-spacing",
|
|
5510
|
-
"word-spacing",
|
|
5511
|
-
"column-count",
|
|
5512
|
-
"text-decoration",
|
|
5513
|
-
"text-transform",
|
|
5514
|
-
"direction",
|
|
5515
|
-
"font-style",
|
|
5516
|
-
"stroke"
|
|
5517
|
-
]
|
|
5518
|
-
}
|
|
5519
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5520
|
-
StyleTabSection,
|
|
5521
|
-
{
|
|
5522
|
-
section: {
|
|
5523
|
-
component: BackgroundSection,
|
|
5524
|
-
name: "Background",
|
|
5525
|
-
title: (0, import_i18n62.__)("Background", "elementor")
|
|
5526
|
-
},
|
|
5527
|
-
fields: ["background"]
|
|
5528
|
-
}
|
|
5529
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5530
|
-
StyleTabSection,
|
|
5531
|
-
{
|
|
5532
|
-
section: {
|
|
5533
|
-
component: BorderSection,
|
|
5534
|
-
name: "Border",
|
|
5535
|
-
title: (0, import_i18n62.__)("Border", "elementor")
|
|
5536
|
-
},
|
|
5537
|
-
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5538
|
-
}
|
|
5539
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5540
|
-
StyleTabSection,
|
|
5541
|
-
{
|
|
5542
|
-
section: {
|
|
5543
|
-
component: EffectsSection,
|
|
5544
|
-
name: "Effects",
|
|
5545
|
-
title: (0, import_i18n62.__)("Effects", "elementor")
|
|
5546
|
-
},
|
|
5547
|
-
fields: [
|
|
5548
|
-
"mix-blend-mode",
|
|
5549
|
-
"box-shadow",
|
|
5550
|
-
"opacity",
|
|
5551
|
-
"transform",
|
|
5552
|
-
"filter",
|
|
5553
|
-
"backdrop-filter",
|
|
5554
|
-
"transform-origin",
|
|
5555
|
-
"transition"
|
|
5556
|
-
]
|
|
5557
|
-
}
|
|
5558
|
-
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(import_ui43.Box, { sx: { height: "150px" } })))
|
|
5621
|
+
/* @__PURE__ */ React90.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React90.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React90.createElement(ClassesHeader, null, /* @__PURE__ */ React90.createElement(CssClassSelector, null), /* @__PURE__ */ React90.createElement(import_ui43.Divider, null)), /* @__PURE__ */ React90.createElement(SectionsList, null, /* @__PURE__ */ React90.createElement(StyleSections, null), /* @__PURE__ */ React90.createElement(StyleTabSlot, null)), /* @__PURE__ */ React90.createElement(import_ui43.Box, { sx: { height: "150px" } })))
|
|
5559
5622
|
));
|
|
5560
5623
|
};
|
|
5561
5624
|
function ClassesHeader({ children }) {
|
|
5562
5625
|
const scrollDirection = useScrollDirection();
|
|
5563
|
-
return /* @__PURE__ */
|
|
5626
|
+
return /* @__PURE__ */ React90.createElement(
|
|
5627
|
+
import_ui43.Stack,
|
|
5628
|
+
{
|
|
5629
|
+
sx: {
|
|
5630
|
+
...stickyHeaderStyles,
|
|
5631
|
+
top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0
|
|
5632
|
+
}
|
|
5633
|
+
},
|
|
5634
|
+
children
|
|
5635
|
+
);
|
|
5564
5636
|
}
|
|
5565
5637
|
function useCurrentClassesProp() {
|
|
5566
5638
|
const { elementType } = useElement();
|
|
@@ -5579,18 +5651,18 @@ var EditingPanelTabs = () => {
|
|
|
5579
5651
|
return (
|
|
5580
5652
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5581
5653
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5582
|
-
/* @__PURE__ */
|
|
5654
|
+
/* @__PURE__ */ React91.createElement(import_react37.Fragment, { key: element.id }, /* @__PURE__ */ React91.createElement(PanelTabContent, null))
|
|
5583
5655
|
);
|
|
5584
5656
|
};
|
|
5585
5657
|
var PanelTabContent = () => {
|
|
5586
5658
|
const { element } = useElement();
|
|
5587
5659
|
const editorDefaults = useDefaultPanelSettings();
|
|
5588
5660
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
5589
|
-
const isPromotedElement = !!(0,
|
|
5661
|
+
const isPromotedElement = !!(0, import_editor_elements14.getWidgetsCache)()?.[element.type]?.meta?.is_pro_promotion;
|
|
5590
5662
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5591
5663
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5592
5664
|
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui44.useTabs)(currentTab);
|
|
5593
|
-
return /* @__PURE__ */
|
|
5665
|
+
return /* @__PURE__ */ React91.createElement(ScrollProvider, null, /* @__PURE__ */ React91.createElement(import_ui44.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React91.createElement(import_ui44.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React91.createElement(
|
|
5594
5666
|
import_ui44.Tabs,
|
|
5595
5667
|
{
|
|
5596
5668
|
variant: "fullWidth",
|
|
@@ -5602,39 +5674,71 @@ var PanelTabContent = () => {
|
|
|
5602
5674
|
setCurrentTab(newValue);
|
|
5603
5675
|
}
|
|
5604
5676
|
},
|
|
5605
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5606
|
-
/* @__PURE__ */
|
|
5607
|
-
/* @__PURE__ */
|
|
5608
|
-
), /* @__PURE__ */
|
|
5677
|
+
!isPromotedElement && /* @__PURE__ */ React91.createElement(import_ui44.Tab, { label: (0, import_i18n64.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5678
|
+
/* @__PURE__ */ React91.createElement(import_ui44.Tab, { label: (0, import_i18n64.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
5679
|
+
/* @__PURE__ */ React91.createElement(import_ui44.Tab, { label: (0, import_i18n64.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5680
|
+
), /* @__PURE__ */ React91.createElement(import_ui44.Divider, null)), !isPromotedElement && /* @__PURE__ */ React91.createElement(import_ui44.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React91.createElement(SettingsTab, null)), /* @__PURE__ */ React91.createElement(import_ui44.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React91.createElement(StyleTab, null)), /* @__PURE__ */ React91.createElement(import_ui44.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React91.createElement(InteractionsTab, null))));
|
|
5609
5681
|
};
|
|
5610
5682
|
|
|
5611
5683
|
// src/components/editing-panel.tsx
|
|
5612
5684
|
var { Slot: PanelHeaderTopSlot, inject: injectIntoPanelHeaderTop } = (0, import_locations5.createLocation)();
|
|
5613
5685
|
var { useMenuItems } = import_menus.controlActionsMenu;
|
|
5614
5686
|
var EditingPanel = () => {
|
|
5615
|
-
const { element, elementType, settings } = (0,
|
|
5687
|
+
const { element, elementType, settings } = (0, import_editor_elements15.useSelectedElementSettings)();
|
|
5616
5688
|
const controlReplacements = (0, import_editor_controls55.getControlReplacements)();
|
|
5617
5689
|
const menuItems = useMenuItems().default;
|
|
5618
5690
|
if (!element || !elementType) {
|
|
5619
5691
|
return null;
|
|
5620
5692
|
}
|
|
5621
|
-
const panelTitle = (0,
|
|
5693
|
+
const panelTitle = (0, import_i18n65.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5622
5694
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5623
|
-
let panelContent = /* @__PURE__ */
|
|
5695
|
+
let panelContent = /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React92.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React92.createElement(import_icons27.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React92.createElement(import_editor_panels.PanelBody, { sx: { height: "auto", flex: 1, minHeight: 0 } }, /* @__PURE__ */ React92.createElement(EditingPanelTabs, null)), /* @__PURE__ */ React92.createElement(EditingPanelStickyPromotion, null));
|
|
5624
5696
|
if (ReplacementComponent) {
|
|
5625
|
-
panelContent = /* @__PURE__ */
|
|
5697
|
+
panelContent = /* @__PURE__ */ React92.createElement(ReplacementComponent, null);
|
|
5626
5698
|
}
|
|
5627
|
-
return /* @__PURE__ */
|
|
5699
|
+
return /* @__PURE__ */ React92.createElement(import_ui45.ErrorBoundary, { fallback: /* @__PURE__ */ React92.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React92.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React92.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React92.createElement(import_editor_controls55.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React92.createElement(import_editor_controls55.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React92.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React92.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React92.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5628
5700
|
};
|
|
5629
5701
|
|
|
5702
|
+
// src/components/style-states/pseudo-state-menu-items.tsx
|
|
5703
|
+
var React93 = __toESM(require("react"));
|
|
5704
|
+
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
5705
|
+
var import_ui46 = require("@elementor/ui");
|
|
5706
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
5707
|
+
function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
|
|
5708
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(
|
|
5709
|
+
import_ui46.MenuSubheader,
|
|
5710
|
+
{
|
|
5711
|
+
sx: {
|
|
5712
|
+
typography: "caption",
|
|
5713
|
+
color: "text.secondary",
|
|
5714
|
+
pb: 0.5,
|
|
5715
|
+
pt: 1
|
|
5716
|
+
}
|
|
5717
|
+
},
|
|
5718
|
+
(0, import_i18n66.__)("States", "elementor")
|
|
5719
|
+
), states.map((state) => /* @__PURE__ */ React93.createElement(
|
|
5720
|
+
import_editor_ui9.MenuListItem,
|
|
5721
|
+
{
|
|
5722
|
+
key: state.key,
|
|
5723
|
+
selected: state.value === activeState,
|
|
5724
|
+
sx: { textTransform: "capitalize" },
|
|
5725
|
+
onClick: () => {
|
|
5726
|
+
onSelectState(state.value);
|
|
5727
|
+
onClose?.();
|
|
5728
|
+
}
|
|
5729
|
+
},
|
|
5730
|
+
state.label
|
|
5731
|
+
)));
|
|
5732
|
+
}
|
|
5733
|
+
|
|
5630
5734
|
// src/init.ts
|
|
5631
5735
|
var import_editor = require("@elementor/editor");
|
|
5632
5736
|
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
5633
|
-
var
|
|
5737
|
+
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
5634
5738
|
|
|
5635
5739
|
// src/hooks/use-open-editor-panel.ts
|
|
5636
5740
|
var import_react38 = require("react");
|
|
5637
|
-
var
|
|
5741
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
5638
5742
|
|
|
5639
5743
|
// src/panel.ts
|
|
5640
5744
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
@@ -5644,10 +5748,10 @@ var { panel, usePanelActions, usePanelStatus } = (0, import_editor_panels2.creat
|
|
|
5644
5748
|
});
|
|
5645
5749
|
|
|
5646
5750
|
// src/sync/is-atomic-widget-selected.ts
|
|
5647
|
-
var
|
|
5751
|
+
var import_editor_elements16 = require("@elementor/editor-elements");
|
|
5648
5752
|
var isAtomicWidgetSelected = () => {
|
|
5649
|
-
const selectedElements = (0,
|
|
5650
|
-
const widgetCache = (0,
|
|
5753
|
+
const selectedElements = (0, import_editor_elements16.getSelectedElements)();
|
|
5754
|
+
const widgetCache = (0, import_editor_elements16.getWidgetsCache)();
|
|
5651
5755
|
if (selectedElements.length !== 1) {
|
|
5652
5756
|
return false;
|
|
5653
5757
|
}
|
|
@@ -5658,7 +5762,7 @@ var isAtomicWidgetSelected = () => {
|
|
|
5658
5762
|
var useOpenEditorPanel = () => {
|
|
5659
5763
|
const { open } = usePanelActions();
|
|
5660
5764
|
(0, import_react38.useEffect)(() => {
|
|
5661
|
-
return (0,
|
|
5765
|
+
return (0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.commandStartEvent)("panel/editor/open"), () => {
|
|
5662
5766
|
if (isAtomicWidgetSelected()) {
|
|
5663
5767
|
open();
|
|
5664
5768
|
}
|
|
@@ -5676,21 +5780,21 @@ var EditingPanelHooks = () => {
|
|
|
5676
5780
|
var import_editor_controls57 = require("@elementor/editor-controls");
|
|
5677
5781
|
|
|
5678
5782
|
// src/components/promotions/custom-css.tsx
|
|
5679
|
-
var
|
|
5783
|
+
var React94 = __toESM(require("react"));
|
|
5680
5784
|
var import_react39 = require("react");
|
|
5681
5785
|
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5682
|
-
var
|
|
5786
|
+
var import_i18n67 = require("@wordpress/i18n");
|
|
5683
5787
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5684
5788
|
var CustomCssSection = () => {
|
|
5685
5789
|
const triggerRef = (0, import_react39.useRef)(null);
|
|
5686
|
-
return /* @__PURE__ */
|
|
5790
|
+
return /* @__PURE__ */ React94.createElement(
|
|
5687
5791
|
StyleTabSection,
|
|
5688
5792
|
{
|
|
5689
5793
|
section: {
|
|
5690
5794
|
name: "Custom CSS",
|
|
5691
|
-
title: (0,
|
|
5795
|
+
title: (0, import_i18n67.__)("Custom CSS", "elementor"),
|
|
5692
5796
|
action: {
|
|
5693
|
-
component: /* @__PURE__ */
|
|
5797
|
+
component: /* @__PURE__ */ React94.createElement(import_editor_controls56.PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5694
5798
|
onClick: () => triggerRef.current?.toggle()
|
|
5695
5799
|
}
|
|
5696
5800
|
}
|
|
@@ -5712,18 +5816,18 @@ var init = () => {
|
|
|
5712
5816
|
};
|
|
5713
5817
|
|
|
5714
5818
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5715
|
-
var
|
|
5819
|
+
var React95 = __toESM(require("react"));
|
|
5716
5820
|
var import_editor_controls59 = require("@elementor/editor-controls");
|
|
5717
|
-
var
|
|
5821
|
+
var import_editor_elements19 = require("@elementor/editor-elements");
|
|
5718
5822
|
var import_editor_props18 = require("@elementor/editor-props");
|
|
5719
5823
|
var import_icons28 = require("@elementor/icons");
|
|
5720
|
-
var
|
|
5721
|
-
var
|
|
5824
|
+
var import_ui47 = require("@elementor/ui");
|
|
5825
|
+
var import_i18n69 = require("@wordpress/i18n");
|
|
5722
5826
|
|
|
5723
5827
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5724
|
-
var
|
|
5828
|
+
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
5725
5829
|
var getElementByType = (elementId, type) => {
|
|
5726
|
-
const currentElement = (0,
|
|
5830
|
+
const currentElement = (0, import_editor_elements17.getContainer)(elementId);
|
|
5727
5831
|
if (!currentElement) {
|
|
5728
5832
|
return null;
|
|
5729
5833
|
}
|
|
@@ -5735,9 +5839,9 @@ var getElementByType = (elementId, type) => {
|
|
|
5735
5839
|
|
|
5736
5840
|
// src/controls-registry/element-controls/tabs-control/use-actions.ts
|
|
5737
5841
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5738
|
-
var
|
|
5842
|
+
var import_editor_elements18 = require("@elementor/editor-elements");
|
|
5739
5843
|
var import_editor_props17 = require("@elementor/editor-props");
|
|
5740
|
-
var
|
|
5844
|
+
var import_i18n68 = require("@wordpress/i18n");
|
|
5741
5845
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5742
5846
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5743
5847
|
var useActions = () => {
|
|
@@ -5753,14 +5857,14 @@ var useActions = () => {
|
|
|
5753
5857
|
});
|
|
5754
5858
|
items3.forEach(({ item, index }) => {
|
|
5755
5859
|
const tabId = item.id;
|
|
5756
|
-
const tabContentAreaContainer = (0,
|
|
5860
|
+
const tabContentAreaContainer = (0, import_editor_elements18.getContainer)(tabContentAreaId);
|
|
5757
5861
|
const tabContentId = tabContentAreaContainer?.children?.[index]?.id;
|
|
5758
5862
|
if (!tabContentId) {
|
|
5759
5863
|
throw new Error("Original content ID is required for duplication");
|
|
5760
5864
|
}
|
|
5761
|
-
(0,
|
|
5865
|
+
(0, import_editor_elements18.duplicateElements)({
|
|
5762
5866
|
elementIds: [tabId, tabContentId],
|
|
5763
|
-
title: (0,
|
|
5867
|
+
title: (0, import_i18n68.__)("Duplicate Tab", "elementor"),
|
|
5764
5868
|
onDuplicateElements: () => {
|
|
5765
5869
|
if (newDefault !== defaultActiveTab) {
|
|
5766
5870
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5781,10 +5885,10 @@ var useActions = () => {
|
|
|
5781
5885
|
movedElementId,
|
|
5782
5886
|
movedElementIndex
|
|
5783
5887
|
}) => {
|
|
5784
|
-
const tabContentContainer = (0,
|
|
5888
|
+
const tabContentContainer = (0, import_editor_elements18.getContainer)(tabContentAreaId);
|
|
5785
5889
|
const tabContent = tabContentContainer?.children?.[movedElementIndex];
|
|
5786
|
-
const movedElement = (0,
|
|
5787
|
-
const tabsMenu = (0,
|
|
5890
|
+
const movedElement = (0, import_editor_elements18.getContainer)(movedElementId);
|
|
5891
|
+
const tabsMenu = (0, import_editor_elements18.getContainer)(tabsMenuId);
|
|
5788
5892
|
if (!tabContent) {
|
|
5789
5893
|
throw new Error("Content element is required");
|
|
5790
5894
|
}
|
|
@@ -5796,8 +5900,8 @@ var useActions = () => {
|
|
|
5796
5900
|
to: toIndex,
|
|
5797
5901
|
defaultActiveTab
|
|
5798
5902
|
});
|
|
5799
|
-
(0,
|
|
5800
|
-
title: (0,
|
|
5903
|
+
(0, import_editor_elements18.moveElements)({
|
|
5904
|
+
title: (0, import_i18n68.__)("Reorder Tabs", "elementor"),
|
|
5801
5905
|
moves: [
|
|
5802
5906
|
{
|
|
5803
5907
|
element: movedElement,
|
|
@@ -5830,11 +5934,11 @@ var useActions = () => {
|
|
|
5830
5934
|
items: items3,
|
|
5831
5935
|
defaultActiveTab
|
|
5832
5936
|
});
|
|
5833
|
-
(0,
|
|
5834
|
-
title: (0,
|
|
5937
|
+
(0, import_editor_elements18.removeElements)({
|
|
5938
|
+
title: (0, import_i18n68.__)("Tabs", "elementor"),
|
|
5835
5939
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5836
5940
|
const tabId = item.id;
|
|
5837
|
-
const tabContentContainer = (0,
|
|
5941
|
+
const tabContentContainer = (0, import_editor_elements18.getContainer)(tabContentAreaId);
|
|
5838
5942
|
const tabContentId = tabContentContainer?.children?.[index]?.id;
|
|
5839
5943
|
if (!tabContentId) {
|
|
5840
5944
|
throw new Error("Content ID is required");
|
|
@@ -5858,15 +5962,15 @@ var useActions = () => {
|
|
|
5858
5962
|
tabsMenuId,
|
|
5859
5963
|
items: items3
|
|
5860
5964
|
}) => {
|
|
5861
|
-
const tabContentArea = (0,
|
|
5862
|
-
const tabsMenu = (0,
|
|
5965
|
+
const tabContentArea = (0, import_editor_elements18.getContainer)(tabContentAreaId);
|
|
5966
|
+
const tabsMenu = (0, import_editor_elements18.getContainer)(tabsMenuId);
|
|
5863
5967
|
if (!tabContentArea || !tabsMenu) {
|
|
5864
5968
|
throw new Error("Tab containers not found");
|
|
5865
5969
|
}
|
|
5866
5970
|
items3.forEach(({ index }) => {
|
|
5867
5971
|
const position = index + 1;
|
|
5868
|
-
(0,
|
|
5869
|
-
title: (0,
|
|
5972
|
+
(0, import_editor_elements18.createElements)({
|
|
5973
|
+
title: (0, import_i18n68.__)("Tabs", "elementor"),
|
|
5870
5974
|
elements: [
|
|
5871
5975
|
{
|
|
5872
5976
|
container: tabContentArea,
|
|
@@ -5935,12 +6039,12 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5935
6039
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5936
6040
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5937
6041
|
var TabsControl = ({ label }) => {
|
|
5938
|
-
return /* @__PURE__ */
|
|
6042
|
+
return /* @__PURE__ */ React95.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n69.__)("Tabs", "elementor") }, /* @__PURE__ */ React95.createElement(TabsControlContent, { label }));
|
|
5939
6043
|
};
|
|
5940
6044
|
var TabsControlContent = ({ label }) => {
|
|
5941
6045
|
const { element } = useElement();
|
|
5942
6046
|
const { addItem, duplicateItem, moveItem, removeItem } = useActions();
|
|
5943
|
-
const { [TAB_ELEMENT_TYPE]: tabLinks } = (0,
|
|
6047
|
+
const { [TAB_ELEMENT_TYPE]: tabLinks } = (0, import_editor_elements19.useElementChildren)(element.id, {
|
|
5944
6048
|
[TAB_MENU_ELEMENT_TYPE]: TAB_ELEMENT_TYPE
|
|
5945
6049
|
});
|
|
5946
6050
|
const tabList = getElementByType(element.id, TAB_MENU_ELEMENT_TYPE);
|
|
@@ -5979,7 +6083,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5979
6083
|
});
|
|
5980
6084
|
}
|
|
5981
6085
|
};
|
|
5982
|
-
return /* @__PURE__ */
|
|
6086
|
+
return /* @__PURE__ */ React95.createElement(
|
|
5983
6087
|
import_editor_controls59.Repeater,
|
|
5984
6088
|
{
|
|
5985
6089
|
showToggle: false,
|
|
@@ -5999,7 +6103,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5999
6103
|
};
|
|
6000
6104
|
var ItemLabel = ({ value, index }) => {
|
|
6001
6105
|
const elementTitle = value?.title;
|
|
6002
|
-
return /* @__PURE__ */
|
|
6106
|
+
return /* @__PURE__ */ React95.createElement(import_ui47.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React95.createElement("span", null, elementTitle), /* @__PURE__ */ React95.createElement(ItemDefaultTab, { index }));
|
|
6003
6107
|
};
|
|
6004
6108
|
var ItemDefaultTab = ({ index }) => {
|
|
6005
6109
|
const { value: defaultItem } = (0, import_editor_controls59.useBoundProp)(import_editor_props18.numberPropTypeUtil);
|
|
@@ -6007,19 +6111,19 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
6007
6111
|
if (!isDefault) {
|
|
6008
6112
|
return null;
|
|
6009
6113
|
}
|
|
6010
|
-
return /* @__PURE__ */
|
|
6114
|
+
return /* @__PURE__ */ React95.createElement(import_ui47.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n69.__)("Default", "elementor") });
|
|
6011
6115
|
};
|
|
6012
6116
|
var ItemContent = ({ value, index }) => {
|
|
6013
6117
|
if (!value.id) {
|
|
6014
6118
|
return null;
|
|
6015
6119
|
}
|
|
6016
|
-
return /* @__PURE__ */
|
|
6120
|
+
return /* @__PURE__ */ React95.createElement(import_ui47.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React95.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React95.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n69.__)("Tabs", "elementor") }, /* @__PURE__ */ React95.createElement(DefaultTabControl, { tabIndex: index })));
|
|
6017
6121
|
};
|
|
6018
6122
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
6019
6123
|
const { value, setValue } = (0, import_editor_controls59.useBoundProp)(import_editor_props18.numberPropTypeUtil);
|
|
6020
6124
|
const isDefault = value === tabIndex;
|
|
6021
|
-
return /* @__PURE__ */
|
|
6022
|
-
|
|
6125
|
+
return /* @__PURE__ */ React95.createElement(import_ui47.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React95.createElement(import_editor_controls59.ControlFormLabel, null, (0, import_i18n69.__)("Set as default tab", "elementor")), /* @__PURE__ */ React95.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React95.createElement(
|
|
6126
|
+
import_ui47.Switch,
|
|
6023
6127
|
{
|
|
6024
6128
|
size: "small",
|
|
6025
6129
|
checked: isDefault,
|
|
@@ -6034,15 +6138,15 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6034
6138
|
)));
|
|
6035
6139
|
};
|
|
6036
6140
|
var TabLabelControl = ({ elementId }) => {
|
|
6037
|
-
const editorSettings = (0,
|
|
6141
|
+
const editorSettings = (0, import_editor_elements19.useElementEditorSettings)(elementId);
|
|
6038
6142
|
const label = editorSettings?.title ?? "";
|
|
6039
|
-
return /* @__PURE__ */
|
|
6040
|
-
|
|
6143
|
+
return /* @__PURE__ */ React95.createElement(import_ui47.Stack, { gap: 1 }, /* @__PURE__ */ React95.createElement(import_editor_controls59.ControlFormLabel, null, (0, import_i18n69.__)("Tab name", "elementor")), /* @__PURE__ */ React95.createElement(
|
|
6144
|
+
import_ui47.TextField,
|
|
6041
6145
|
{
|
|
6042
6146
|
size: "tiny",
|
|
6043
6147
|
value: label,
|
|
6044
6148
|
onChange: ({ target }) => {
|
|
6045
|
-
(0,
|
|
6149
|
+
(0, import_editor_elements19.updateElementEditorSettings)({
|
|
6046
6150
|
elementId,
|
|
6047
6151
|
settings: { title: target.value }
|
|
6048
6152
|
});
|
|
@@ -6057,22 +6161,22 @@ var ConditionalTooltip = ({
|
|
|
6057
6161
|
if (!showTooltip) {
|
|
6058
6162
|
return children;
|
|
6059
6163
|
}
|
|
6060
|
-
return /* @__PURE__ */
|
|
6061
|
-
|
|
6164
|
+
return /* @__PURE__ */ React95.createElement(
|
|
6165
|
+
import_ui47.Infotip,
|
|
6062
6166
|
{
|
|
6063
6167
|
arrow: false,
|
|
6064
|
-
content: /* @__PURE__ */
|
|
6065
|
-
|
|
6168
|
+
content: /* @__PURE__ */ React95.createElement(
|
|
6169
|
+
import_ui47.Alert,
|
|
6066
6170
|
{
|
|
6067
6171
|
color: "secondary",
|
|
6068
|
-
icon: /* @__PURE__ */
|
|
6172
|
+
icon: /* @__PURE__ */ React95.createElement(import_icons28.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
6069
6173
|
size: "small",
|
|
6070
6174
|
sx: { width: 288 }
|
|
6071
6175
|
},
|
|
6072
|
-
/* @__PURE__ */
|
|
6176
|
+
/* @__PURE__ */ React95.createElement(import_ui47.Typography, { variant: "body2" }, (0, import_i18n69.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6073
6177
|
)
|
|
6074
6178
|
},
|
|
6075
|
-
/* @__PURE__ */
|
|
6179
|
+
/* @__PURE__ */ React95.createElement("span", null, children)
|
|
6076
6180
|
);
|
|
6077
6181
|
};
|
|
6078
6182
|
|
|
@@ -6094,7 +6198,7 @@ var import_editor_controls66 = require("@elementor/editor-controls");
|
|
|
6094
6198
|
var import_menus2 = require("@elementor/menus");
|
|
6095
6199
|
|
|
6096
6200
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6097
|
-
var
|
|
6201
|
+
var React96 = __toESM(require("react"));
|
|
6098
6202
|
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
6099
6203
|
var import_editor_props20 = require("@elementor/editor-props");
|
|
6100
6204
|
var import_icons29 = require("@elementor/icons");
|
|
@@ -6107,7 +6211,7 @@ var import_react41 = require("react");
|
|
|
6107
6211
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
6108
6212
|
|
|
6109
6213
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
6110
|
-
var
|
|
6214
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
6111
6215
|
|
|
6112
6216
|
// src/hooks/use-license-config.ts
|
|
6113
6217
|
var import_react40 = require("react");
|
|
@@ -6130,7 +6234,7 @@ function useLicenseConfig() {
|
|
|
6130
6234
|
|
|
6131
6235
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
6132
6236
|
var getAtomicDynamicTags = (shouldFilterByLicense = true) => {
|
|
6133
|
-
const { atomicDynamicTags } = (0,
|
|
6237
|
+
const { atomicDynamicTags } = (0, import_editor_v1_adapters9.getElementorConfig)();
|
|
6134
6238
|
if (!atomicDynamicTags) {
|
|
6135
6239
|
return null;
|
|
6136
6240
|
}
|
|
@@ -6153,7 +6257,7 @@ var filterByLicense = (tags) => {
|
|
|
6153
6257
|
|
|
6154
6258
|
// src/dynamics/utils.ts
|
|
6155
6259
|
var import_editor_props19 = require("@elementor/editor-props");
|
|
6156
|
-
var
|
|
6260
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
6157
6261
|
var import_schema = require("@elementor/schema");
|
|
6158
6262
|
var DYNAMIC_PROP_TYPE_KEY = "dynamic";
|
|
6159
6263
|
var dynamicPropTypeUtil = (0, import_editor_props19.createPropUtils)(
|
|
@@ -6165,7 +6269,7 @@ var dynamicPropTypeUtil = (0, import_editor_props19.createPropUtils)(
|
|
|
6165
6269
|
})
|
|
6166
6270
|
);
|
|
6167
6271
|
var isDynamicTagSupported = (tagName) => {
|
|
6168
|
-
return !!(0,
|
|
6272
|
+
return !!(0, import_editor_v1_adapters10.getElementorConfig)()?.atomicDynamicTags?.tags?.[tagName];
|
|
6169
6273
|
};
|
|
6170
6274
|
var isDynamicPropType = (prop) => prop.key === DYNAMIC_PROP_TYPE_KEY;
|
|
6171
6275
|
var getDynamicPropType = (propType) => {
|
|
@@ -6232,29 +6336,29 @@ var useDynamicTag = (tagName) => {
|
|
|
6232
6336
|
};
|
|
6233
6337
|
|
|
6234
6338
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6235
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6339
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React96.createElement(import_icons29.DatabaseIcon, { fontSize: "tiny" });
|
|
6236
6340
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6237
6341
|
const context = (0, import_editor_controls61.useBoundProp)(import_editor_props20.backgroundImageOverlayPropTypeUtil);
|
|
6238
|
-
return /* @__PURE__ */
|
|
6342
|
+
return /* @__PURE__ */ React96.createElement(import_editor_controls61.PropProvider, { ...context, value: value.value }, /* @__PURE__ */ React96.createElement(import_editor_controls61.PropKeyProvider, { bind: "image" }, /* @__PURE__ */ React96.createElement(Wrapper2, { rawValue: value.value })));
|
|
6239
6343
|
};
|
|
6240
6344
|
var Wrapper2 = ({ rawValue }) => {
|
|
6241
6345
|
const { propType } = (0, import_editor_controls61.useBoundProp)();
|
|
6242
6346
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6243
|
-
return /* @__PURE__ */
|
|
6347
|
+
return /* @__PURE__ */ React96.createElement(import_editor_controls61.PropProvider, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React96.createElement(import_editor_controls61.PropKeyProvider, { bind: "src" }, /* @__PURE__ */ React96.createElement(Content, { rawValue: rawValue.image })));
|
|
6244
6348
|
};
|
|
6245
6349
|
var Content = ({ rawValue }) => {
|
|
6246
6350
|
const src = rawValue.value.src;
|
|
6247
6351
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6248
|
-
return /* @__PURE__ */
|
|
6352
|
+
return /* @__PURE__ */ React96.createElement(React96.Fragment, null, dynamicTag?.label);
|
|
6249
6353
|
};
|
|
6250
6354
|
|
|
6251
6355
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6252
|
-
var
|
|
6356
|
+
var React100 = __toESM(require("react"));
|
|
6253
6357
|
var import_editor_controls64 = require("@elementor/editor-controls");
|
|
6254
|
-
var
|
|
6358
|
+
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
6255
6359
|
var import_icons31 = require("@elementor/icons");
|
|
6256
|
-
var
|
|
6257
|
-
var
|
|
6360
|
+
var import_ui49 = require("@elementor/ui");
|
|
6361
|
+
var import_i18n71 = require("@wordpress/i18n");
|
|
6258
6362
|
|
|
6259
6363
|
// src/hooks/use-persist-dynamic-value.ts
|
|
6260
6364
|
var import_session10 = require("@elementor/session");
|
|
@@ -6265,11 +6369,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6265
6369
|
};
|
|
6266
6370
|
|
|
6267
6371
|
// src/dynamics/dynamic-control.tsx
|
|
6268
|
-
var
|
|
6372
|
+
var React98 = __toESM(require("react"));
|
|
6269
6373
|
var import_editor_controls62 = require("@elementor/editor-controls");
|
|
6270
6374
|
|
|
6271
6375
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6272
|
-
var
|
|
6376
|
+
var React97 = __toESM(require("react"));
|
|
6273
6377
|
var import_react43 = require("react");
|
|
6274
6378
|
var import_editor_props21 = require("@elementor/editor-props");
|
|
6275
6379
|
var DynamicConditionalControl = ({
|
|
@@ -6311,10 +6415,10 @@ var DynamicConditionalControl = ({
|
|
|
6311
6415
|
return { ...defaults, ...convertedSettings };
|
|
6312
6416
|
}, [defaults, convertedSettings]);
|
|
6313
6417
|
if (!propType?.dependencies?.terms.length) {
|
|
6314
|
-
return /* @__PURE__ */
|
|
6418
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, children);
|
|
6315
6419
|
}
|
|
6316
6420
|
const isHidden = !(0, import_editor_props21.isDependencyMet)(propType?.dependencies, effectiveSettings).isMet;
|
|
6317
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6421
|
+
return isHidden ? null : /* @__PURE__ */ React97.createElement(React97.Fragment, null, children);
|
|
6318
6422
|
};
|
|
6319
6423
|
|
|
6320
6424
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6339,7 +6443,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6339
6443
|
});
|
|
6340
6444
|
};
|
|
6341
6445
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6342
|
-
return /* @__PURE__ */
|
|
6446
|
+
return /* @__PURE__ */ React98.createElement(import_editor_controls62.PropProvider, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React98.createElement(import_editor_controls62.PropKeyProvider, { bind }, /* @__PURE__ */ React98.createElement(
|
|
6343
6447
|
DynamicConditionalControl,
|
|
6344
6448
|
{
|
|
6345
6449
|
propType: dynamicPropType,
|
|
@@ -6351,13 +6455,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6351
6455
|
};
|
|
6352
6456
|
|
|
6353
6457
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6354
|
-
var
|
|
6458
|
+
var React99 = __toESM(require("react"));
|
|
6355
6459
|
var import_react44 = require("react");
|
|
6356
6460
|
var import_editor_controls63 = require("@elementor/editor-controls");
|
|
6357
|
-
var
|
|
6461
|
+
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
6358
6462
|
var import_icons30 = require("@elementor/icons");
|
|
6359
|
-
var
|
|
6360
|
-
var
|
|
6463
|
+
var import_ui48 = require("@elementor/ui");
|
|
6464
|
+
var import_i18n70 = require("@wordpress/i18n");
|
|
6361
6465
|
var SIZE2 = "tiny";
|
|
6362
6466
|
var PROMO_TEXT_WIDTH = 170;
|
|
6363
6467
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6365,7 +6469,7 @@ var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew
|
|
|
6365
6469
|
var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
6366
6470
|
const [searchValue, setSearchValue] = (0, import_react44.useState)("");
|
|
6367
6471
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
6368
|
-
const theme = (0,
|
|
6472
|
+
const theme = (0, import_ui48.useTheme)();
|
|
6369
6473
|
const { value: anyValue } = (0, import_editor_controls63.useBoundProp)();
|
|
6370
6474
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls63.useBoundProp)(dynamicPropTypeUtil);
|
|
6371
6475
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
@@ -6404,41 +6508,41 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6404
6508
|
]);
|
|
6405
6509
|
const getPopOverContent = () => {
|
|
6406
6510
|
if (hasNoDynamicTags) {
|
|
6407
|
-
return /* @__PURE__ */
|
|
6511
|
+
return /* @__PURE__ */ React99.createElement(NoDynamicTags, null);
|
|
6408
6512
|
}
|
|
6409
6513
|
if (expired) {
|
|
6410
|
-
return /* @__PURE__ */
|
|
6514
|
+
return /* @__PURE__ */ React99.createElement(ExpiredDynamicTags, null);
|
|
6411
6515
|
}
|
|
6412
|
-
return /* @__PURE__ */
|
|
6413
|
-
|
|
6516
|
+
return /* @__PURE__ */ React99.createElement(import_react44.Fragment, null, /* @__PURE__ */ React99.createElement(
|
|
6517
|
+
import_editor_ui10.SearchField,
|
|
6414
6518
|
{
|
|
6415
6519
|
value: searchValue,
|
|
6416
6520
|
onSearch: handleSearch,
|
|
6417
|
-
placeholder: (0,
|
|
6521
|
+
placeholder: (0, import_i18n70.__)("Search dynamic tags\u2026", "elementor")
|
|
6418
6522
|
}
|
|
6419
|
-
), /* @__PURE__ */
|
|
6420
|
-
|
|
6523
|
+
), /* @__PURE__ */ React99.createElement(import_ui48.Divider, null), /* @__PURE__ */ React99.createElement(
|
|
6524
|
+
import_editor_ui10.PopoverMenuList,
|
|
6421
6525
|
{
|
|
6422
6526
|
items: virtualizedItems,
|
|
6423
6527
|
onSelect: handleSetDynamicTag,
|
|
6424
6528
|
onClose: closePopover,
|
|
6425
6529
|
selectedValue: dynamicValue?.name,
|
|
6426
6530
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6427
|
-
noResultsComponent: /* @__PURE__ */
|
|
6531
|
+
noResultsComponent: /* @__PURE__ */ React99.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6428
6532
|
}
|
|
6429
6533
|
));
|
|
6430
6534
|
};
|
|
6431
|
-
return /* @__PURE__ */
|
|
6432
|
-
|
|
6535
|
+
return /* @__PURE__ */ React99.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n70.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React99.createElement(
|
|
6536
|
+
import_editor_ui10.PopoverHeader,
|
|
6433
6537
|
{
|
|
6434
|
-
title: (0,
|
|
6538
|
+
title: (0, import_i18n70.__)("Dynamic tags", "elementor"),
|
|
6435
6539
|
onClose: closePopover,
|
|
6436
|
-
icon: /* @__PURE__ */
|
|
6540
|
+
icon: /* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: SIZE2 })
|
|
6437
6541
|
}
|
|
6438
6542
|
), getPopOverContent());
|
|
6439
6543
|
};
|
|
6440
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6441
|
-
|
|
6544
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React99.createElement(
|
|
6545
|
+
import_ui48.Stack,
|
|
6442
6546
|
{
|
|
6443
6547
|
gap: 1,
|
|
6444
6548
|
alignItems: "center",
|
|
@@ -6448,12 +6552,12 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React97.createElem
|
|
|
6448
6552
|
color: "text.secondary",
|
|
6449
6553
|
sx: { pb: 3.5 }
|
|
6450
6554
|
},
|
|
6451
|
-
/* @__PURE__ */
|
|
6452
|
-
/* @__PURE__ */
|
|
6453
|
-
/* @__PURE__ */
|
|
6555
|
+
/* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6556
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n70.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React99.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6557
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n70.__)("Try something else.", "elementor"), /* @__PURE__ */ React99.createElement(import_ui48.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n70.__)("Clear & try again", "elementor")))
|
|
6454
6558
|
);
|
|
6455
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6456
|
-
|
|
6559
|
+
var NoDynamicTags = () => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(import_ui48.Divider, null), /* @__PURE__ */ React99.createElement(
|
|
6560
|
+
import_ui48.Stack,
|
|
6457
6561
|
{
|
|
6458
6562
|
gap: 1,
|
|
6459
6563
|
alignItems: "center",
|
|
@@ -6463,11 +6567,11 @@ var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment
|
|
|
6463
6567
|
color: "text.secondary",
|
|
6464
6568
|
sx: { pb: 3.5 }
|
|
6465
6569
|
},
|
|
6466
|
-
/* @__PURE__ */
|
|
6467
|
-
/* @__PURE__ */
|
|
6468
|
-
/* @__PURE__ */
|
|
6469
|
-
/* @__PURE__ */
|
|
6470
|
-
|
|
6570
|
+
/* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6571
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n70.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
6572
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n70.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
6573
|
+
/* @__PURE__ */ React99.createElement(
|
|
6574
|
+
import_editor_ui10.CtaButton,
|
|
6471
6575
|
{
|
|
6472
6576
|
size: "small",
|
|
6473
6577
|
href: PRO_DYNAMIC_TAGS_URL,
|
|
@@ -6475,8 +6579,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment
|
|
|
6475
6579
|
}
|
|
6476
6580
|
)
|
|
6477
6581
|
));
|
|
6478
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6479
|
-
|
|
6582
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(import_ui48.Divider, null), /* @__PURE__ */ React99.createElement(
|
|
6583
|
+
import_ui48.Stack,
|
|
6480
6584
|
{
|
|
6481
6585
|
gap: 1,
|
|
6482
6586
|
alignItems: "center",
|
|
@@ -6486,16 +6590,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fra
|
|
|
6486
6590
|
color: "text.secondary",
|
|
6487
6591
|
sx: { pb: 3.5 }
|
|
6488
6592
|
},
|
|
6489
|
-
/* @__PURE__ */
|
|
6490
|
-
/* @__PURE__ */
|
|
6491
|
-
/* @__PURE__ */
|
|
6492
|
-
/* @__PURE__ */
|
|
6493
|
-
|
|
6593
|
+
/* @__PURE__ */ React99.createElement(import_icons30.DatabaseIcon, { fontSize: "large" }),
|
|
6594
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n70.__)("Unlock your Dynamic tags again", "elementor")),
|
|
6595
|
+
/* @__PURE__ */ React99.createElement(import_ui48.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n70.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6596
|
+
/* @__PURE__ */ React99.createElement(
|
|
6597
|
+
import_editor_ui10.CtaButton,
|
|
6494
6598
|
{
|
|
6495
6599
|
size: "small",
|
|
6496
6600
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6497
6601
|
onClick: () => (0, import_editor_controls63.trackUpgradePromotionClick)({ target_name: "dynamic_tags" }),
|
|
6498
|
-
children: (0,
|
|
6602
|
+
children: (0, import_i18n70.__)("Renew Now", "elementor")
|
|
6499
6603
|
}
|
|
6500
6604
|
)
|
|
6501
6605
|
));
|
|
@@ -6528,11 +6632,11 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6528
6632
|
}
|
|
6529
6633
|
});
|
|
6530
6634
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
6531
|
-
const selectionPopoverState = (0,
|
|
6635
|
+
const selectionPopoverState = (0, import_ui49.usePopupState)({ variant: "popover" });
|
|
6532
6636
|
const { name: tagName = "" } = value;
|
|
6533
6637
|
const dynamicTag = useDynamicTag(tagName);
|
|
6534
6638
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6535
|
-
return /* @__PURE__ */
|
|
6639
|
+
return /* @__PURE__ */ React100.createElement(import_editor_controls64.PropProvider, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React100.createElement(import_editor_controls64.PropKeyProvider, { bind }, /* @__PURE__ */ React100.createElement(OriginalControl, { ...props })));
|
|
6536
6640
|
}
|
|
6537
6641
|
const removeDynamicTag = () => {
|
|
6538
6642
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6540,26 +6644,26 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6540
6644
|
if (!dynamicTag) {
|
|
6541
6645
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6542
6646
|
}
|
|
6543
|
-
return /* @__PURE__ */
|
|
6544
|
-
|
|
6647
|
+
return /* @__PURE__ */ React100.createElement(import_ui49.Box, null, /* @__PURE__ */ React100.createElement(
|
|
6648
|
+
import_ui49.UnstableTag,
|
|
6545
6649
|
{
|
|
6546
6650
|
fullWidth: true,
|
|
6547
6651
|
showActionsOnHover: true,
|
|
6548
6652
|
label: dynamicTag.label,
|
|
6549
|
-
startIcon: /* @__PURE__ */
|
|
6550
|
-
...(0,
|
|
6551
|
-
actions: /* @__PURE__ */
|
|
6552
|
-
|
|
6653
|
+
startIcon: /* @__PURE__ */ React100.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE3 }),
|
|
6654
|
+
...(0, import_ui49.bindTrigger)(selectionPopoverState),
|
|
6655
|
+
actions: /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React100.createElement(
|
|
6656
|
+
import_ui49.IconButton,
|
|
6553
6657
|
{
|
|
6554
6658
|
size: SIZE3,
|
|
6555
6659
|
onClick: removeDynamicTag,
|
|
6556
|
-
"aria-label": (0,
|
|
6660
|
+
"aria-label": (0, import_i18n71.__)("Remove dynamic value", "elementor")
|
|
6557
6661
|
},
|
|
6558
|
-
/* @__PURE__ */
|
|
6662
|
+
/* @__PURE__ */ React100.createElement(import_icons31.XIcon, { fontSize: SIZE3 })
|
|
6559
6663
|
))
|
|
6560
6664
|
}
|
|
6561
|
-
), /* @__PURE__ */
|
|
6562
|
-
|
|
6665
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6666
|
+
import_ui49.Popover,
|
|
6563
6667
|
{
|
|
6564
6668
|
disablePortal: true,
|
|
6565
6669
|
disableScrollLock: true,
|
|
@@ -6568,31 +6672,31 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6568
6672
|
PaperProps: {
|
|
6569
6673
|
sx: { my: 1 }
|
|
6570
6674
|
},
|
|
6571
|
-
...(0,
|
|
6675
|
+
...(0, import_ui49.bindPopover)(selectionPopoverState)
|
|
6572
6676
|
},
|
|
6573
|
-
/* @__PURE__ */
|
|
6677
|
+
/* @__PURE__ */ React100.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n71.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React100.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6574
6678
|
));
|
|
6575
6679
|
};
|
|
6576
6680
|
var DynamicSettingsPopover = ({
|
|
6577
6681
|
dynamicTag,
|
|
6578
6682
|
disabled = false
|
|
6579
6683
|
}) => {
|
|
6580
|
-
const popupState = (0,
|
|
6684
|
+
const popupState = (0, import_ui49.usePopupState)({ variant: "popover" });
|
|
6581
6685
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
6582
6686
|
if (!hasDynamicSettings) {
|
|
6583
6687
|
return null;
|
|
6584
6688
|
}
|
|
6585
|
-
return /* @__PURE__ */
|
|
6586
|
-
|
|
6689
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
6690
|
+
import_ui49.IconButton,
|
|
6587
6691
|
{
|
|
6588
6692
|
size: SIZE3,
|
|
6589
6693
|
disabled,
|
|
6590
|
-
...!disabled && (0,
|
|
6591
|
-
"aria-label": (0,
|
|
6694
|
+
...!disabled && (0, import_ui49.bindTrigger)(popupState),
|
|
6695
|
+
"aria-label": (0, import_i18n71.__)("Dynamic settings", "elementor")
|
|
6592
6696
|
},
|
|
6593
|
-
/* @__PURE__ */
|
|
6594
|
-
), /* @__PURE__ */
|
|
6595
|
-
|
|
6697
|
+
/* @__PURE__ */ React100.createElement(import_icons31.SettingsIcon, { fontSize: SIZE3 })
|
|
6698
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6699
|
+
import_ui49.Popover,
|
|
6596
6700
|
{
|
|
6597
6701
|
disablePortal: true,
|
|
6598
6702
|
disableScrollLock: true,
|
|
@@ -6601,45 +6705,45 @@ var DynamicSettingsPopover = ({
|
|
|
6601
6705
|
PaperProps: {
|
|
6602
6706
|
sx: { my: 1 }
|
|
6603
6707
|
},
|
|
6604
|
-
...(0,
|
|
6708
|
+
...(0, import_ui49.bindPopover)(popupState)
|
|
6605
6709
|
},
|
|
6606
|
-
/* @__PURE__ */
|
|
6607
|
-
|
|
6710
|
+
/* @__PURE__ */ React100.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n71.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React100.createElement(
|
|
6711
|
+
import_editor_ui11.PopoverHeader,
|
|
6608
6712
|
{
|
|
6609
6713
|
title: dynamicTag.label,
|
|
6610
6714
|
onClose: popupState.close,
|
|
6611
|
-
icon: /* @__PURE__ */
|
|
6715
|
+
icon: /* @__PURE__ */ React100.createElement(import_icons31.DatabaseIcon, { fontSize: SIZE3 })
|
|
6612
6716
|
}
|
|
6613
|
-
), /* @__PURE__ */
|
|
6717
|
+
), /* @__PURE__ */ React100.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6614
6718
|
));
|
|
6615
6719
|
};
|
|
6616
6720
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
6617
6721
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
6618
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
6722
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui49.useTabs)(0);
|
|
6619
6723
|
if (!tabs.length) {
|
|
6620
6724
|
return null;
|
|
6621
6725
|
}
|
|
6622
6726
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6623
6727
|
const singleTab = tabs[0];
|
|
6624
|
-
return /* @__PURE__ */
|
|
6728
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(import_ui49.Divider, null), /* @__PURE__ */ React100.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6625
6729
|
}
|
|
6626
|
-
return /* @__PURE__ */
|
|
6627
|
-
|
|
6730
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React100.createElement(import_ui49.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React100.createElement(
|
|
6731
|
+
import_ui49.Tab,
|
|
6628
6732
|
{
|
|
6629
6733
|
key: index,
|
|
6630
6734
|
label: value.label,
|
|
6631
6735
|
sx: { px: 1, py: 0.5 },
|
|
6632
6736
|
...getTabProps(index)
|
|
6633
6737
|
}
|
|
6634
|
-
))), /* @__PURE__ */
|
|
6635
|
-
return /* @__PURE__ */
|
|
6636
|
-
|
|
6738
|
+
))), /* @__PURE__ */ React100.createElement(import_ui49.Divider, null), tabs.map(({ value }, index) => {
|
|
6739
|
+
return /* @__PURE__ */ React100.createElement(
|
|
6740
|
+
import_ui49.TabPanel,
|
|
6637
6741
|
{
|
|
6638
6742
|
key: index,
|
|
6639
6743
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6640
6744
|
...getTabPanelProps(index)
|
|
6641
6745
|
},
|
|
6642
|
-
/* @__PURE__ */
|
|
6746
|
+
/* @__PURE__ */ React100.createElement(ControlsItemsStack, { items: value.items })
|
|
6643
6747
|
);
|
|
6644
6748
|
}));
|
|
6645
6749
|
};
|
|
@@ -6681,11 +6785,11 @@ var Control2 = ({ control }) => {
|
|
|
6681
6785
|
display: "grid",
|
|
6682
6786
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6683
6787
|
} : {};
|
|
6684
|
-
return /* @__PURE__ */
|
|
6788
|
+
return /* @__PURE__ */ React100.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React100.createElement(import_ui49.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React100.createElement(import_ui49.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React100.createElement(import_editor_controls64.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React100.createElement(import_ui49.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React100.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6685
6789
|
};
|
|
6686
6790
|
function ControlsItemsStack({ items: items3 }) {
|
|
6687
|
-
return /* @__PURE__ */
|
|
6688
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6791
|
+
return /* @__PURE__ */ React100.createElement(import_ui49.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6792
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React100.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6689
6793
|
));
|
|
6690
6794
|
}
|
|
6691
6795
|
|
|
@@ -6742,18 +6846,18 @@ function getDynamicValue(name, settings, renderPostId) {
|
|
|
6742
6846
|
}
|
|
6743
6847
|
|
|
6744
6848
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6745
|
-
var
|
|
6849
|
+
var React101 = __toESM(require("react"));
|
|
6746
6850
|
var import_editor_controls65 = require("@elementor/editor-controls");
|
|
6747
6851
|
var import_icons32 = require("@elementor/icons");
|
|
6748
|
-
var
|
|
6852
|
+
var import_i18n72 = require("@wordpress/i18n");
|
|
6749
6853
|
var usePropDynamicAction = () => {
|
|
6750
6854
|
const { propType } = (0, import_editor_controls65.useBoundProp)();
|
|
6751
6855
|
const visible = !!propType && supportsDynamic(propType);
|
|
6752
6856
|
return {
|
|
6753
6857
|
visible,
|
|
6754
6858
|
icon: import_icons32.DatabaseIcon,
|
|
6755
|
-
title: (0,
|
|
6756
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6859
|
+
title: (0, import_i18n72.__)("Dynamic tags", "elementor"),
|
|
6860
|
+
content: ({ close }) => /* @__PURE__ */ React101.createElement(DynamicSelection, { close })
|
|
6757
6861
|
};
|
|
6758
6862
|
};
|
|
6759
6863
|
|
|
@@ -6788,7 +6892,7 @@ var import_editor_controls67 = require("@elementor/editor-controls");
|
|
|
6788
6892
|
var import_editor_variables2 = require("@elementor/editor-variables");
|
|
6789
6893
|
var import_icons33 = require("@elementor/icons");
|
|
6790
6894
|
var import_menus3 = require("@elementor/menus");
|
|
6791
|
-
var
|
|
6895
|
+
var import_i18n73 = require("@wordpress/i18n");
|
|
6792
6896
|
|
|
6793
6897
|
// src/utils/is-equal.ts
|
|
6794
6898
|
function isEqual(a, b) {
|
|
@@ -6864,33 +6968,33 @@ function useResetStyleValueProps() {
|
|
|
6864
6968
|
const visible = calculateVisibility();
|
|
6865
6969
|
return {
|
|
6866
6970
|
visible,
|
|
6867
|
-
title: (0,
|
|
6971
|
+
title: (0, import_i18n73.__)("Clear", "elementor"),
|
|
6868
6972
|
icon: import_icons33.BrushBigIcon,
|
|
6869
6973
|
onClick: () => resetValue()
|
|
6870
6974
|
};
|
|
6871
6975
|
}
|
|
6872
6976
|
|
|
6873
6977
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6874
|
-
var
|
|
6978
|
+
var React107 = __toESM(require("react"));
|
|
6875
6979
|
var import_editor_controls68 = require("@elementor/editor-controls");
|
|
6876
6980
|
var import_editor_props23 = require("@elementor/editor-props");
|
|
6877
6981
|
var import_editor_styles_repository20 = require("@elementor/editor-styles-repository");
|
|
6878
|
-
var
|
|
6982
|
+
var import_i18n77 = require("@wordpress/i18n");
|
|
6879
6983
|
|
|
6880
6984
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6881
|
-
var
|
|
6985
|
+
var React106 = __toESM(require("react"));
|
|
6882
6986
|
var import_react46 = require("react");
|
|
6883
6987
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
6884
|
-
var
|
|
6885
|
-
var
|
|
6886
|
-
var
|
|
6988
|
+
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
6989
|
+
var import_ui54 = require("@elementor/ui");
|
|
6990
|
+
var import_i18n76 = require("@wordpress/i18n");
|
|
6887
6991
|
|
|
6888
6992
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6889
6993
|
var import_react45 = require("react");
|
|
6890
6994
|
var import_editor_canvas4 = require("@elementor/editor-canvas");
|
|
6891
6995
|
var import_editor_styles8 = require("@elementor/editor-styles");
|
|
6892
6996
|
var import_editor_styles_repository18 = require("@elementor/editor-styles-repository");
|
|
6893
|
-
var
|
|
6997
|
+
var import_i18n74 = require("@wordpress/i18n");
|
|
6894
6998
|
var MAXIMUM_ITEMS = 2;
|
|
6895
6999
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6896
7000
|
const [items3, setItems] = (0, import_react45.useState)([]);
|
|
@@ -6901,7 +7005,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
6901
7005
|
);
|
|
6902
7006
|
const validItems = normalizedItems.map((item) => ({
|
|
6903
7007
|
...item,
|
|
6904
|
-
displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0,
|
|
7008
|
+
displayLabel: import_editor_styles_repository18.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n74.__)("Base", "elementor")
|
|
6905
7009
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6906
7010
|
setItems(validItems);
|
|
6907
7011
|
})();
|
|
@@ -6958,10 +7062,10 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6958
7062
|
};
|
|
6959
7063
|
|
|
6960
7064
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
6961
|
-
var
|
|
7065
|
+
var React102 = __toESM(require("react"));
|
|
6962
7066
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
6963
7067
|
var import_icons34 = require("@elementor/icons");
|
|
6964
|
-
var
|
|
7068
|
+
var import_ui50 = require("@elementor/ui");
|
|
6965
7069
|
var SIZE4 = "tiny";
|
|
6966
7070
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
6967
7071
|
var breakpointIconMap = {
|
|
@@ -6981,21 +7085,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6981
7085
|
return null;
|
|
6982
7086
|
}
|
|
6983
7087
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6984
|
-
return /* @__PURE__ */
|
|
7088
|
+
return /* @__PURE__ */ React102.createElement(import_ui50.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6985
7089
|
};
|
|
6986
7090
|
|
|
6987
7091
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6988
|
-
var
|
|
7092
|
+
var React103 = __toESM(require("react"));
|
|
6989
7093
|
var import_editor_styles_repository19 = require("@elementor/editor-styles-repository");
|
|
6990
7094
|
var import_icons35 = require("@elementor/icons");
|
|
6991
|
-
var
|
|
6992
|
-
var
|
|
7095
|
+
var import_ui51 = require("@elementor/ui");
|
|
7096
|
+
var import_i18n75 = require("@wordpress/i18n");
|
|
6993
7097
|
var SIZE5 = "tiny";
|
|
6994
7098
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6995
7099
|
const isBaseStyle = provider === import_editor_styles_repository19.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6996
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
6997
|
-
return /* @__PURE__ */
|
|
6998
|
-
|
|
7100
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React103.createElement(import_ui51.Tooltip, { title: (0, import_i18n75.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React103.createElement(import_icons35.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
7101
|
+
return /* @__PURE__ */ React103.createElement(
|
|
7102
|
+
import_ui51.Chip,
|
|
6999
7103
|
{
|
|
7000
7104
|
label: displayLabel,
|
|
7001
7105
|
size: SIZE5,
|
|
@@ -7020,11 +7124,11 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7020
7124
|
};
|
|
7021
7125
|
|
|
7022
7126
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7023
|
-
var
|
|
7024
|
-
var
|
|
7127
|
+
var React104 = __toESM(require("react"));
|
|
7128
|
+
var import_ui52 = require("@elementor/ui");
|
|
7025
7129
|
var ValueComponent = ({ index, value }) => {
|
|
7026
|
-
return /* @__PURE__ */
|
|
7027
|
-
|
|
7130
|
+
return /* @__PURE__ */ React104.createElement(import_ui52.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React104.createElement(
|
|
7131
|
+
import_ui52.Typography,
|
|
7028
7132
|
{
|
|
7029
7133
|
variant: "caption",
|
|
7030
7134
|
color: "text.tertiary",
|
|
@@ -7045,9 +7149,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7045
7149
|
};
|
|
7046
7150
|
|
|
7047
7151
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7048
|
-
var
|
|
7049
|
-
var
|
|
7050
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7152
|
+
var React105 = __toESM(require("react"));
|
|
7153
|
+
var import_ui53 = require("@elementor/ui");
|
|
7154
|
+
var ActionIcons = () => /* @__PURE__ */ React105.createElement(import_ui53.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7051
7155
|
|
|
7052
7156
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7053
7157
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7075,7 +7179,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7075
7179
|
setShowInfotip(false);
|
|
7076
7180
|
};
|
|
7077
7181
|
const key = path.join(".");
|
|
7078
|
-
const sectionWidth = (0,
|
|
7182
|
+
const sectionWidth = (0, import_editor_ui12.useSectionWidth)();
|
|
7079
7183
|
const resolve = (0, import_react46.useMemo)(() => {
|
|
7080
7184
|
return (0, import_editor_canvas5.createPropsResolver)({
|
|
7081
7185
|
transformers: import_editor_canvas5.stylesInheritanceTransformersRegistry,
|
|
@@ -7083,8 +7187,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7083
7187
|
});
|
|
7084
7188
|
}, [key, propType]);
|
|
7085
7189
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7086
|
-
const infotipContent = /* @__PURE__ */
|
|
7087
|
-
|
|
7190
|
+
const infotipContent = /* @__PURE__ */ React106.createElement(import_ui54.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React106.createElement(
|
|
7191
|
+
import_ui54.Card,
|
|
7088
7192
|
{
|
|
7089
7193
|
elevation: 0,
|
|
7090
7194
|
sx: {
|
|
@@ -7096,8 +7200,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7096
7200
|
flexDirection: "column"
|
|
7097
7201
|
}
|
|
7098
7202
|
},
|
|
7099
|
-
/* @__PURE__ */
|
|
7100
|
-
|
|
7203
|
+
/* @__PURE__ */ React106.createElement(
|
|
7204
|
+
import_ui54.Box,
|
|
7101
7205
|
{
|
|
7102
7206
|
sx: {
|
|
7103
7207
|
position: "sticky",
|
|
@@ -7106,10 +7210,10 @@ var StylesInheritanceInfotip = ({
|
|
|
7106
7210
|
backgroundColor: "background.paper"
|
|
7107
7211
|
}
|
|
7108
7212
|
},
|
|
7109
|
-
/* @__PURE__ */
|
|
7213
|
+
/* @__PURE__ */ React106.createElement(import_editor_ui12.PopoverHeader, { title: (0, import_i18n76.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
7110
7214
|
),
|
|
7111
|
-
/* @__PURE__ */
|
|
7112
|
-
|
|
7215
|
+
/* @__PURE__ */ React106.createElement(
|
|
7216
|
+
import_ui54.CardContent,
|
|
7113
7217
|
{
|
|
7114
7218
|
sx: {
|
|
7115
7219
|
display: "flex",
|
|
@@ -7122,39 +7226,39 @@ var StylesInheritanceInfotip = ({
|
|
|
7122
7226
|
}
|
|
7123
7227
|
}
|
|
7124
7228
|
},
|
|
7125
|
-
/* @__PURE__ */
|
|
7126
|
-
return /* @__PURE__ */
|
|
7127
|
-
|
|
7229
|
+
/* @__PURE__ */ React106.createElement(import_ui54.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7230
|
+
return /* @__PURE__ */ React106.createElement(
|
|
7231
|
+
import_ui54.Box,
|
|
7128
7232
|
{
|
|
7129
7233
|
key: item.id,
|
|
7130
7234
|
display: "flex",
|
|
7131
7235
|
gap: 0.5,
|
|
7132
7236
|
role: "listitem",
|
|
7133
|
-
"aria-label": (0,
|
|
7237
|
+
"aria-label": (0, import_i18n76.__)("Inheritance item: %s", "elementor").replace(
|
|
7134
7238
|
"%s",
|
|
7135
7239
|
item.displayLabel
|
|
7136
7240
|
)
|
|
7137
7241
|
},
|
|
7138
|
-
/* @__PURE__ */
|
|
7139
|
-
|
|
7242
|
+
/* @__PURE__ */ React106.createElement(
|
|
7243
|
+
import_ui54.Box,
|
|
7140
7244
|
{
|
|
7141
7245
|
display: "flex",
|
|
7142
7246
|
gap: 0.5,
|
|
7143
7247
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7144
7248
|
},
|
|
7145
|
-
/* @__PURE__ */
|
|
7146
|
-
/* @__PURE__ */
|
|
7147
|
-
/* @__PURE__ */
|
|
7249
|
+
/* @__PURE__ */ React106.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7250
|
+
/* @__PURE__ */ React106.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7251
|
+
/* @__PURE__ */ React106.createElement(ValueComponent, { index, value: item.value })
|
|
7148
7252
|
),
|
|
7149
|
-
/* @__PURE__ */
|
|
7253
|
+
/* @__PURE__ */ React106.createElement(ActionIcons, null)
|
|
7150
7254
|
);
|
|
7151
7255
|
}))
|
|
7152
7256
|
)
|
|
7153
7257
|
));
|
|
7154
7258
|
if (isDisabled) {
|
|
7155
|
-
return /* @__PURE__ */
|
|
7259
|
+
return /* @__PURE__ */ React106.createElement(import_ui54.Box, { sx: { display: "inline-flex" } }, children);
|
|
7156
7260
|
}
|
|
7157
|
-
return /* @__PURE__ */
|
|
7261
|
+
return /* @__PURE__ */ React106.createElement(import_ui54.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React106.createElement(
|
|
7158
7262
|
TooltipOrInfotip,
|
|
7159
7263
|
{
|
|
7160
7264
|
showInfotip,
|
|
@@ -7162,8 +7266,8 @@ var StylesInheritanceInfotip = ({
|
|
|
7162
7266
|
infotipContent,
|
|
7163
7267
|
isDisabled
|
|
7164
7268
|
},
|
|
7165
|
-
/* @__PURE__ */
|
|
7166
|
-
|
|
7269
|
+
/* @__PURE__ */ React106.createElement(
|
|
7270
|
+
import_ui54.IconButton,
|
|
7167
7271
|
{
|
|
7168
7272
|
onClick: toggleInfotip,
|
|
7169
7273
|
"aria-label": label,
|
|
@@ -7182,11 +7286,11 @@ function TooltipOrInfotip({
|
|
|
7182
7286
|
isDisabled
|
|
7183
7287
|
}) {
|
|
7184
7288
|
if (isDisabled) {
|
|
7185
|
-
return /* @__PURE__ */
|
|
7289
|
+
return /* @__PURE__ */ React106.createElement(import_ui54.Box, { sx: { display: "inline-flex" } }, children);
|
|
7186
7290
|
}
|
|
7187
7291
|
if (showInfotip) {
|
|
7188
|
-
return /* @__PURE__ */
|
|
7189
|
-
|
|
7292
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, /* @__PURE__ */ React106.createElement(
|
|
7293
|
+
import_ui54.Backdrop,
|
|
7190
7294
|
{
|
|
7191
7295
|
open: showInfotip,
|
|
7192
7296
|
onClick: onClose,
|
|
@@ -7195,8 +7299,8 @@ function TooltipOrInfotip({
|
|
|
7195
7299
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7196
7300
|
}
|
|
7197
7301
|
}
|
|
7198
|
-
), /* @__PURE__ */
|
|
7199
|
-
|
|
7302
|
+
), /* @__PURE__ */ React106.createElement(
|
|
7303
|
+
import_ui54.Infotip,
|
|
7200
7304
|
{
|
|
7201
7305
|
placement: "top-end",
|
|
7202
7306
|
content: infotipContent,
|
|
@@ -7207,7 +7311,7 @@ function TooltipOrInfotip({
|
|
|
7207
7311
|
children
|
|
7208
7312
|
));
|
|
7209
7313
|
}
|
|
7210
|
-
return /* @__PURE__ */
|
|
7314
|
+
return /* @__PURE__ */ React106.createElement(import_ui54.Tooltip, { title: (0, import_i18n76.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
7211
7315
|
}
|
|
7212
7316
|
|
|
7213
7317
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7220,7 +7324,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7220
7324
|
if (!path || !inheritanceChain.length) {
|
|
7221
7325
|
return null;
|
|
7222
7326
|
}
|
|
7223
|
-
return /* @__PURE__ */
|
|
7327
|
+
return /* @__PURE__ */ React107.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7224
7328
|
};
|
|
7225
7329
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7226
7330
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7236,7 +7340,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7236
7340
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7237
7341
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7238
7342
|
};
|
|
7239
|
-
return /* @__PURE__ */
|
|
7343
|
+
return /* @__PURE__ */ React107.createElement(
|
|
7240
7344
|
StylesInheritanceInfotip,
|
|
7241
7345
|
{
|
|
7242
7346
|
inheritanceChain,
|
|
@@ -7245,17 +7349,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7245
7349
|
label,
|
|
7246
7350
|
isDisabled
|
|
7247
7351
|
},
|
|
7248
|
-
/* @__PURE__ */
|
|
7352
|
+
/* @__PURE__ */ React107.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7249
7353
|
);
|
|
7250
7354
|
};
|
|
7251
7355
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
7252
7356
|
if (isFinalValue) {
|
|
7253
|
-
return (0,
|
|
7357
|
+
return (0, import_i18n77.__)("This is the final value", "elementor");
|
|
7254
7358
|
}
|
|
7255
7359
|
if (hasValue) {
|
|
7256
|
-
return (0,
|
|
7360
|
+
return (0, import_i18n77.__)("This value is overridden by another style", "elementor");
|
|
7257
7361
|
}
|
|
7258
|
-
return (0,
|
|
7362
|
+
return (0, import_i18n77.__)("This has value from another style", "elementor");
|
|
7259
7363
|
};
|
|
7260
7364
|
|
|
7261
7365
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -7276,7 +7380,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7276
7380
|
]);
|
|
7277
7381
|
|
|
7278
7382
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7279
|
-
var
|
|
7383
|
+
var React108 = __toESM(require("react"));
|
|
7280
7384
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
7281
7385
|
var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) => {
|
|
7282
7386
|
if (!values || values.length === 0) {
|
|
@@ -7286,18 +7390,18 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
|
|
|
7286
7390
|
if (allStrings) {
|
|
7287
7391
|
return values.join(" ");
|
|
7288
7392
|
}
|
|
7289
|
-
return /* @__PURE__ */
|
|
7393
|
+
return /* @__PURE__ */ React108.createElement(React108.Fragment, null, values.map((item, index) => /* @__PURE__ */ React108.createElement(React108.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7290
7394
|
});
|
|
7291
7395
|
|
|
7292
7396
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7293
|
-
var
|
|
7397
|
+
var React109 = __toESM(require("react"));
|
|
7294
7398
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
7295
|
-
var
|
|
7296
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */
|
|
7399
|
+
var import_ui55 = require("@elementor/ui");
|
|
7400
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React109.createElement(import_ui55.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React109.createElement(ItemLabelColor, { value })));
|
|
7297
7401
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7298
|
-
return /* @__PURE__ */
|
|
7402
|
+
return /* @__PURE__ */ React109.createElement("span", null, color);
|
|
7299
7403
|
};
|
|
7300
|
-
var StyledUnstableColorIndicator = (0,
|
|
7404
|
+
var StyledUnstableColorIndicator = (0, import_ui55.styled)(import_ui55.UnstableColorIndicator)(({ theme }) => ({
|
|
7301
7405
|
width: "1em",
|
|
7302
7406
|
height: "1em",
|
|
7303
7407
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -7306,20 +7410,20 @@ var StyledUnstableColorIndicator = (0, import_ui54.styled)(import_ui54.UnstableC
|
|
|
7306
7410
|
}));
|
|
7307
7411
|
|
|
7308
7412
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7309
|
-
var
|
|
7413
|
+
var React110 = __toESM(require("react"));
|
|
7310
7414
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
7311
|
-
var
|
|
7312
|
-
var
|
|
7313
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */
|
|
7415
|
+
var import_ui56 = require("@elementor/ui");
|
|
7416
|
+
var import_i18n78 = require("@wordpress/i18n");
|
|
7417
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React110.createElement(import_ui56.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React110.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React110.createElement(ItemLabelGradient, { value })));
|
|
7314
7418
|
var ItemIconGradient = ({ value }) => {
|
|
7315
7419
|
const gradient = getGradientValue(value);
|
|
7316
|
-
return /* @__PURE__ */
|
|
7420
|
+
return /* @__PURE__ */ React110.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7317
7421
|
};
|
|
7318
7422
|
var ItemLabelGradient = ({ value }) => {
|
|
7319
7423
|
if (value.type === "linear") {
|
|
7320
|
-
return /* @__PURE__ */
|
|
7424
|
+
return /* @__PURE__ */ React110.createElement("span", null, (0, import_i18n78.__)("Linear gradient", "elementor"));
|
|
7321
7425
|
}
|
|
7322
|
-
return /* @__PURE__ */
|
|
7426
|
+
return /* @__PURE__ */ React110.createElement("span", null, (0, import_i18n78.__)("Radial gradient", "elementor"));
|
|
7323
7427
|
};
|
|
7324
7428
|
var getGradientValue = (gradient) => {
|
|
7325
7429
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7330,16 +7434,16 @@ var getGradientValue = (gradient) => {
|
|
|
7330
7434
|
};
|
|
7331
7435
|
|
|
7332
7436
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7333
|
-
var
|
|
7437
|
+
var React111 = __toESM(require("react"));
|
|
7334
7438
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
7335
|
-
var
|
|
7336
|
-
var
|
|
7439
|
+
var import_editor_ui13 = require("@elementor/editor-ui");
|
|
7440
|
+
var import_ui57 = require("@elementor/ui");
|
|
7337
7441
|
var import_wp_media = require("@elementor/wp-media");
|
|
7338
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */
|
|
7442
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React111.createElement(import_ui57.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React111.createElement(ItemIconImage, { value }), /* @__PURE__ */ React111.createElement(ItemLabelImage, { value })));
|
|
7339
7443
|
var ItemIconImage = ({ value }) => {
|
|
7340
7444
|
const { imageUrl } = useImage(value);
|
|
7341
|
-
return /* @__PURE__ */
|
|
7342
|
-
|
|
7445
|
+
return /* @__PURE__ */ React111.createElement(
|
|
7446
|
+
import_ui57.CardMedia,
|
|
7343
7447
|
{
|
|
7344
7448
|
image: imageUrl,
|
|
7345
7449
|
sx: (theme) => ({
|
|
@@ -7354,7 +7458,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7354
7458
|
};
|
|
7355
7459
|
var ItemLabelImage = ({ value }) => {
|
|
7356
7460
|
const { imageTitle } = useImage(value);
|
|
7357
|
-
return /* @__PURE__ */
|
|
7461
|
+
return /* @__PURE__ */ React111.createElement(import_editor_ui13.EllipsisWithTooltip, { title: imageTitle }, /* @__PURE__ */ React111.createElement("span", null, imageTitle));
|
|
7358
7462
|
};
|
|
7359
7463
|
var useImage = (image) => {
|
|
7360
7464
|
let imageTitle, imageUrl = null;
|
|
@@ -7379,7 +7483,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7379
7483
|
};
|
|
7380
7484
|
|
|
7381
7485
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7382
|
-
var
|
|
7486
|
+
var React112 = __toESM(require("react"));
|
|
7383
7487
|
var import_editor_canvas10 = require("@elementor/editor-canvas");
|
|
7384
7488
|
var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value) => {
|
|
7385
7489
|
if (!value) {
|
|
@@ -7389,20 +7493,20 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
7389
7493
|
const colorValue = color || "#000000";
|
|
7390
7494
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7391
7495
|
const positionValue = position || "outset";
|
|
7392
|
-
return /* @__PURE__ */
|
|
7496
|
+
return /* @__PURE__ */ React112.createElement(React112.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7393
7497
|
});
|
|
7394
7498
|
|
|
7395
7499
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7396
|
-
var
|
|
7500
|
+
var React113 = __toESM(require("react"));
|
|
7397
7501
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
7398
|
-
var
|
|
7502
|
+
var import_ui58 = require("@elementor/ui");
|
|
7399
7503
|
function isValidCSSColor(value) {
|
|
7400
7504
|
if (!value.trim()) {
|
|
7401
7505
|
return false;
|
|
7402
7506
|
}
|
|
7403
7507
|
return CSS.supports("color", value.trim());
|
|
7404
7508
|
}
|
|
7405
|
-
var StyledColorIndicator = (0,
|
|
7509
|
+
var StyledColorIndicator = (0, import_ui58.styled)(import_ui58.UnstableColorIndicator)(({ theme }) => ({
|
|
7406
7510
|
width: "1em",
|
|
7407
7511
|
height: "1em",
|
|
7408
7512
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -7413,7 +7517,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
7413
7517
|
if (!isValidCSSColor(value)) {
|
|
7414
7518
|
return value;
|
|
7415
7519
|
}
|
|
7416
|
-
return /* @__PURE__ */
|
|
7520
|
+
return /* @__PURE__ */ React113.createElement(import_ui58.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React113.createElement("span", null, value));
|
|
7417
7521
|
});
|
|
7418
7522
|
|
|
7419
7523
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|
|
@@ -7496,7 +7600,7 @@ function init4() {
|
|
|
7496
7600
|
init();
|
|
7497
7601
|
}
|
|
7498
7602
|
var blockV1Panel = () => {
|
|
7499
|
-
(0,
|
|
7603
|
+
(0, import_editor_v1_adapters11.blockCommand)({
|
|
7500
7604
|
command: "panel/editor/open",
|
|
7501
7605
|
condition: isAtomicWidgetSelected
|
|
7502
7606
|
});
|
|
@@ -7504,17 +7608,27 @@ var blockV1Panel = () => {
|
|
|
7504
7608
|
// Annotate the CommonJS export names for ESM import in node:
|
|
7505
7609
|
0 && (module.exports = {
|
|
7506
7610
|
BaseControl,
|
|
7611
|
+
ClassesPropProvider,
|
|
7507
7612
|
ControlLabel,
|
|
7508
7613
|
ControlTypeContainer,
|
|
7614
|
+
CreatableAutocomplete,
|
|
7509
7615
|
CustomCssIndicator,
|
|
7616
|
+
DEFAULT_PSEUDO_STATES,
|
|
7510
7617
|
EditingPanelTabs,
|
|
7511
7618
|
ElementProvider,
|
|
7512
7619
|
FIELD_TYPE,
|
|
7513
7620
|
HISTORY_DEBOUNCE_WAIT,
|
|
7621
|
+
PseudoStateMenuItems,
|
|
7622
|
+
STYLE_SECTIONS,
|
|
7623
|
+
STYLE_SECTION_NAMES,
|
|
7514
7624
|
SectionContent,
|
|
7625
|
+
SectionsList,
|
|
7515
7626
|
SettingsControl,
|
|
7516
7627
|
SettingsField,
|
|
7517
7628
|
StyleIndicator,
|
|
7629
|
+
StyleInheritanceProvider,
|
|
7630
|
+
StyleProvider,
|
|
7631
|
+
StyleSections,
|
|
7518
7632
|
StyleTabSection,
|
|
7519
7633
|
StylesProviderCannotUpdatePropsError,
|
|
7520
7634
|
controlsRegistry,
|
|
@@ -7546,6 +7660,7 @@ var blockV1Panel = () => {
|
|
|
7546
7660
|
useElement,
|
|
7547
7661
|
usePanelActions,
|
|
7548
7662
|
usePanelStatus,
|
|
7663
|
+
usePseudoStates,
|
|
7549
7664
|
useStateByElement,
|
|
7550
7665
|
useStyle,
|
|
7551
7666
|
useStylesRerender
|