@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.mjs
CHANGED
|
@@ -1,234 +1,5 @@
|
|
|
1
|
-
// src/components/css-classes/css-class-convert-local.tsx
|
|
2
|
-
import * as React4 from "react";
|
|
3
|
-
import { deleteElementStyle, getElementSetting, updateElementSettings } from "@elementor/editor-elements";
|
|
4
|
-
import { classesPropTypeUtil } from "@elementor/editor-props";
|
|
5
|
-
import { createLocation } from "@elementor/locations";
|
|
6
|
-
import { useSessionStorage } from "@elementor/session";
|
|
7
|
-
|
|
8
|
-
// src/contexts/classes-prop-context.tsx
|
|
9
|
-
import * as React from "react";
|
|
10
|
-
import { createContext, useContext } from "react";
|
|
11
|
-
var Context = createContext(null);
|
|
12
|
-
function ClassesPropProvider({ children, prop }) {
|
|
13
|
-
return /* @__PURE__ */ React.createElement(Context.Provider, { value: { prop } }, children);
|
|
14
|
-
}
|
|
15
|
-
function useClassesProp() {
|
|
16
|
-
const context = useContext(Context);
|
|
17
|
-
if (!context) {
|
|
18
|
-
throw new Error("useClassesProp must be used within a ClassesPropProvider");
|
|
19
|
-
}
|
|
20
|
-
return context.prop;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
// src/contexts/element-context.tsx
|
|
24
|
-
import * as React2 from "react";
|
|
25
|
-
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
26
|
-
var Context2 = createContext2(null);
|
|
27
|
-
function ElementProvider({ children, element, elementType, settings }) {
|
|
28
|
-
return /* @__PURE__ */ React2.createElement(Context2.Provider, { value: { element, elementType, settings } }, children);
|
|
29
|
-
}
|
|
30
|
-
function useElement() {
|
|
31
|
-
const context = useContext2(Context2);
|
|
32
|
-
if (!context) {
|
|
33
|
-
throw new Error("useElement must be used within a ElementProvider");
|
|
34
|
-
}
|
|
35
|
-
return context;
|
|
36
|
-
}
|
|
37
|
-
function usePanelElementSetting(propKey) {
|
|
38
|
-
const context = useContext2(Context2);
|
|
39
|
-
if (!context) {
|
|
40
|
-
throw new Error("usePanelElementSetting must be used within a ElementProvider");
|
|
41
|
-
}
|
|
42
|
-
return context.settings[propKey] ?? null;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// src/contexts/style-context.tsx
|
|
46
|
-
import * as React3 from "react";
|
|
47
|
-
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
48
|
-
import { stylesRepository, useUserStylesCapability } from "@elementor/editor-styles-repository";
|
|
49
|
-
|
|
50
|
-
// src/errors.ts
|
|
51
|
-
import { createError } from "@elementor/utils";
|
|
52
|
-
var ControlTypeNotFoundError = createError({
|
|
53
|
-
code: "control_type_not_found",
|
|
54
|
-
message: "Control type not found."
|
|
55
|
-
});
|
|
56
|
-
var ControlTypeAlreadyRegisteredError = createError({
|
|
57
|
-
code: "control_type_already_registered",
|
|
58
|
-
message: "Control type is already registered."
|
|
59
|
-
});
|
|
60
|
-
var ControlTypeNotRegisteredError = createError({
|
|
61
|
-
code: "control_type_not_registered",
|
|
62
|
-
message: "Control type is not registered."
|
|
63
|
-
});
|
|
64
|
-
var StylesProviderNotFoundError = createError({
|
|
65
|
-
code: "provider_not_found",
|
|
66
|
-
message: "Styles provider not found."
|
|
67
|
-
});
|
|
68
|
-
var StylesProviderCannotUpdatePropsError = createError({
|
|
69
|
-
code: "provider_cannot_update_props",
|
|
70
|
-
message: "Styles provider doesn't support updating props."
|
|
71
|
-
});
|
|
72
|
-
var StyleNotFoundUnderProviderError = createError({
|
|
73
|
-
code: "style_not_found_under_provider",
|
|
74
|
-
message: "Style not found under the provider."
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
// src/contexts/style-context.tsx
|
|
78
|
-
var Context3 = createContext3(null);
|
|
79
|
-
function StyleProvider({ children, ...props }) {
|
|
80
|
-
const provider = props.id === null ? null : getProviderByStyleId(props.id);
|
|
81
|
-
const { userCan } = useUserStylesCapability();
|
|
82
|
-
if (props.id && !provider) {
|
|
83
|
-
throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
|
|
84
|
-
}
|
|
85
|
-
const canEdit = userCan(provider?.getKey() ?? "").updateProps;
|
|
86
|
-
return /* @__PURE__ */ React3.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
|
|
87
|
-
}
|
|
88
|
-
function useStyle() {
|
|
89
|
-
const context = useContext3(Context3);
|
|
90
|
-
if (!context) {
|
|
91
|
-
throw new Error("useStyle must be used within a StyleProvider");
|
|
92
|
-
}
|
|
93
|
-
return context;
|
|
94
|
-
}
|
|
95
|
-
function getProviderByStyleId(styleId) {
|
|
96
|
-
const styleProvider = stylesRepository.getProviders().find((provider) => {
|
|
97
|
-
return provider.actions.all().find((style) => style.id === styleId);
|
|
98
|
-
});
|
|
99
|
-
return styleProvider ?? null;
|
|
100
|
-
}
|
|
101
|
-
function useIsStyle() {
|
|
102
|
-
return !!useContext3(Context3);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
// src/components/css-classes/consts.ts
|
|
106
|
-
var PENDING_CLASS_RENAME_SESSION_KEY = "pending-class-rename-id";
|
|
107
|
-
|
|
108
|
-
// src/components/css-classes/css-class-convert-local.tsx
|
|
109
|
-
var { Slot: CssClassConvertSlot, inject: injectIntoCssClassConvert } = createLocation();
|
|
110
|
-
var CssClassConvert = (props) => {
|
|
111
|
-
const { element } = useElement();
|
|
112
|
-
const elementId = element.id;
|
|
113
|
-
const currentClassesProp = useClassesProp();
|
|
114
|
-
const { setId: setActiveId } = useStyle();
|
|
115
|
-
const [, saveValue] = useSessionStorage(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
116
|
-
const successCallback = (newId) => {
|
|
117
|
-
if (!props.styleDef) {
|
|
118
|
-
throw new Error("Style definition is required for converting local class to global class.");
|
|
119
|
-
}
|
|
120
|
-
onConvert({
|
|
121
|
-
newId,
|
|
122
|
-
elementId,
|
|
123
|
-
classesProp: currentClassesProp,
|
|
124
|
-
styleDef: props.styleDef
|
|
125
|
-
});
|
|
126
|
-
saveValue(newId);
|
|
127
|
-
setActiveId(newId);
|
|
128
|
-
props.closeMenu();
|
|
129
|
-
};
|
|
130
|
-
return /* @__PURE__ */ React4.createElement(
|
|
131
|
-
CssClassConvertSlot,
|
|
132
|
-
{
|
|
133
|
-
canConvert: !!props.canConvert,
|
|
134
|
-
styleDef: props.styleDef,
|
|
135
|
-
successCallback
|
|
136
|
-
}
|
|
137
|
-
);
|
|
138
|
-
};
|
|
139
|
-
var onConvert = (opts) => {
|
|
140
|
-
const { newId, elementId, classesProp } = opts;
|
|
141
|
-
deleteElementStyle(elementId, opts.styleDef.id);
|
|
142
|
-
const currentUsedClasses = getElementSetting(elementId, classesProp) || { value: [] };
|
|
143
|
-
updateElementSettings({
|
|
144
|
-
id: elementId,
|
|
145
|
-
props: { [classesProp]: classesPropTypeUtil.create([newId, ...currentUsedClasses.value]) },
|
|
146
|
-
withHistory: false
|
|
147
|
-
});
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
// src/components/control-label.tsx
|
|
151
|
-
import * as React5 from "react";
|
|
152
|
-
import { ControlAdornments, ControlFormLabel } from "@elementor/editor-controls";
|
|
153
|
-
import { InfoCircleIcon } from "@elementor/icons";
|
|
154
|
-
import { Stack, Tooltip } from "@elementor/ui";
|
|
155
|
-
var ControlLabel = ({ children, infoTooltip }) => {
|
|
156
|
-
return /* @__PURE__ */ React5.createElement(Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React5.createElement(ControlFormLabel, null, children), infoTooltip && /* @__PURE__ */ React5.createElement(Tooltip, { title: infoTooltip, placement: "top" }, /* @__PURE__ */ React5.createElement(InfoCircleIcon, { fontSize: "tiny" })), /* @__PURE__ */ React5.createElement(ControlAdornments, null));
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
// src/components/css-classes/css-class-selector.tsx
|
|
160
|
-
import * as React13 from "react";
|
|
161
|
-
import { useCallback as useCallback2, useRef, useState as useState4 } from "react";
|
|
162
|
-
import {
|
|
163
|
-
isElementsStylesProvider as isElementsStylesProvider4,
|
|
164
|
-
stylesRepository as stylesRepository7,
|
|
165
|
-
useProviders as useProviders2,
|
|
166
|
-
useUserStylesCapability as useUserStylesCapability5,
|
|
167
|
-
validateStyleLabel as validateStyleLabel2
|
|
168
|
-
} from "@elementor/editor-styles-repository";
|
|
169
|
-
import { InfoAlert, WarningInfotip } from "@elementor/editor-ui";
|
|
170
|
-
import { ColorSwatchIcon, MapPinIcon } from "@elementor/icons";
|
|
171
|
-
import { createLocation as createLocation2 } from "@elementor/locations";
|
|
172
|
-
import {
|
|
173
|
-
Box as Box2,
|
|
174
|
-
Button,
|
|
175
|
-
Chip as Chip3,
|
|
176
|
-
FormLabel,
|
|
177
|
-
Link,
|
|
178
|
-
Stack as Stack4,
|
|
179
|
-
Typography as Typography4
|
|
180
|
-
} from "@elementor/ui";
|
|
181
|
-
import { __ as __7 } from "@wordpress/i18n";
|
|
182
|
-
|
|
183
|
-
// src/utils/get-styles-provider-color.ts
|
|
184
|
-
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY, isElementsStylesProvider } from "@elementor/editor-styles-repository";
|
|
185
|
-
|
|
186
|
-
// src/provider-colors-registry.ts
|
|
187
|
-
var DEFAULT_COLORS = {
|
|
188
|
-
name: "default",
|
|
189
|
-
getThemeColor: null
|
|
190
|
-
};
|
|
191
|
-
var providerColorsRegistry = /* @__PURE__ */ new Map();
|
|
192
|
-
var registerStyleProviderToColors = (provider, colors) => {
|
|
193
|
-
providerColorsRegistry.set(provider, colors);
|
|
194
|
-
};
|
|
195
|
-
var getStyleProviderColors = (provider) => providerColorsRegistry.get(provider) ?? DEFAULT_COLORS;
|
|
196
|
-
|
|
197
|
-
// src/utils/get-styles-provider-color.ts
|
|
198
|
-
var getStylesProviderColorName = (provider) => {
|
|
199
|
-
if (!provider || provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
200
|
-
return "default";
|
|
201
|
-
}
|
|
202
|
-
if (isElementsStylesProvider(provider)) {
|
|
203
|
-
return "accent";
|
|
204
|
-
}
|
|
205
|
-
return getStyleProviderColors(provider).name;
|
|
206
|
-
};
|
|
207
|
-
var getStylesProviderThemeColor = (provider) => {
|
|
208
|
-
if (!provider || provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
209
|
-
return null;
|
|
210
|
-
}
|
|
211
|
-
if (isElementsStylesProvider(provider)) {
|
|
212
|
-
return (theme) => theme.palette.accent.main;
|
|
213
|
-
}
|
|
214
|
-
return getStyleProviderColors(provider).getThemeColor;
|
|
215
|
-
};
|
|
216
|
-
function getTempStylesProviderThemeColor(provider) {
|
|
217
|
-
if (isElementsStylesProvider(provider)) {
|
|
218
|
-
return (theme) => theme.palette.primary.main;
|
|
219
|
-
}
|
|
220
|
-
return getStylesProviderThemeColor(provider);
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
// src/utils/tracking/subscribe.ts
|
|
224
|
-
import { stylesRepository as stylesRepository2 } from "@elementor/editor-styles-repository";
|
|
225
|
-
var trackStyles = (provider, event, data) => {
|
|
226
|
-
const providerInstance = stylesRepository2.getProviderByKey(provider);
|
|
227
|
-
providerInstance?.actions.tracking?.({ event, ...data });
|
|
228
|
-
};
|
|
229
|
-
|
|
230
1
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
231
|
-
import * as
|
|
2
|
+
import * as React from "react";
|
|
232
3
|
import { useId, useMemo } from "react";
|
|
233
4
|
import {
|
|
234
5
|
Autocomplete,
|
|
@@ -417,7 +188,7 @@ function useFilterOptions(parameters) {
|
|
|
417
188
|
|
|
418
189
|
// src/components/creatable-autocomplete/creatable-autocomplete.tsx
|
|
419
190
|
var MIN_INPUT_LENGTH = 2;
|
|
420
|
-
var CreatableAutocomplete =
|
|
191
|
+
var CreatableAutocomplete = React.forwardRef(CreatableAutocompleteInner);
|
|
421
192
|
function CreatableAutocompleteInner({
|
|
422
193
|
selected,
|
|
423
194
|
options: options13,
|
|
@@ -446,11 +217,11 @@ function CreatableAutocompleteInner({
|
|
|
446
217
|
const filterOptions = useFilterOptions({ options: options13, selected, onCreate, entityName });
|
|
447
218
|
const isCreatable = Boolean(onCreate);
|
|
448
219
|
const freeSolo = isCreatable || inputValue.length < MIN_INPUT_LENGTH || void 0;
|
|
449
|
-
return /* @__PURE__ */
|
|
220
|
+
return /* @__PURE__ */ React.createElement(
|
|
450
221
|
Autocomplete,
|
|
451
222
|
{
|
|
452
223
|
renderTags: (tagValue, getTagProps) => {
|
|
453
|
-
return tagValue.map((option, index) => /* @__PURE__ */
|
|
224
|
+
return tagValue.map((option, index) => /* @__PURE__ */ React.createElement(
|
|
454
225
|
Chip,
|
|
455
226
|
{
|
|
456
227
|
size: "tiny",
|
|
@@ -476,11 +247,11 @@ function CreatableAutocompleteInner({
|
|
|
476
247
|
disableCloseOnSelect: true,
|
|
477
248
|
value: internalSelected,
|
|
478
249
|
options: internalOptions,
|
|
479
|
-
ListboxComponent: error ?
|
|
480
|
-
renderGroup: (params) => /* @__PURE__ */
|
|
250
|
+
ListboxComponent: error ? React.forwardRef((_, errorTextRef) => /* @__PURE__ */ React.createElement(ErrorText, { ref: errorTextRef, error })) : void 0,
|
|
251
|
+
renderGroup: (params) => /* @__PURE__ */ React.createElement(Group, { ...params }),
|
|
481
252
|
inputValue,
|
|
482
253
|
renderInput: (params) => {
|
|
483
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ React.createElement(
|
|
484
255
|
TextField,
|
|
485
256
|
{
|
|
486
257
|
...params,
|
|
@@ -508,7 +279,7 @@ function CreatableAutocompleteInner({
|
|
|
508
279
|
groupBy: (option) => option._group ?? "",
|
|
509
280
|
renderOption: (optionProps, option) => {
|
|
510
281
|
const { _group, label } = option;
|
|
511
|
-
return /* @__PURE__ */
|
|
282
|
+
return /* @__PURE__ */ React.createElement(
|
|
512
283
|
"li",
|
|
513
284
|
{
|
|
514
285
|
...optionProps,
|
|
@@ -534,37 +305,266 @@ function CreatableAutocompleteInner({
|
|
|
534
305
|
}
|
|
535
306
|
);
|
|
536
307
|
}
|
|
537
|
-
var Group = (params) => {
|
|
538
|
-
const id = `combobox-group-${useId().replace(/:/g, "_")}`;
|
|
539
|
-
return /* @__PURE__ */
|
|
308
|
+
var Group = (params) => {
|
|
309
|
+
const id = `combobox-group-${useId().replace(/:/g, "_")}`;
|
|
310
|
+
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));
|
|
311
|
+
};
|
|
312
|
+
var ErrorText = React.forwardRef(({ error = "error" }, ref) => {
|
|
313
|
+
return /* @__PURE__ */ React.createElement(
|
|
314
|
+
Box,
|
|
315
|
+
{
|
|
316
|
+
ref,
|
|
317
|
+
sx: (theme) => ({
|
|
318
|
+
padding: theme.spacing(2)
|
|
319
|
+
})
|
|
320
|
+
},
|
|
321
|
+
/* @__PURE__ */ React.createElement(Typography, { variant: "caption", sx: { color: "error.main", display: "inline-block" } }, error)
|
|
322
|
+
);
|
|
323
|
+
});
|
|
324
|
+
var StyledGroup = styled("li")`
|
|
325
|
+
&:not( :last-of-type ) {
|
|
326
|
+
border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
|
|
327
|
+
}
|
|
328
|
+
`;
|
|
329
|
+
var StyledGroupHeader = styled(Box)(({ theme }) => ({
|
|
330
|
+
position: "sticky",
|
|
331
|
+
top: "-8px",
|
|
332
|
+
padding: theme.spacing(1, 2),
|
|
333
|
+
color: theme.palette.text.tertiary,
|
|
334
|
+
backgroundColor: theme.palette.primary.contrastText
|
|
335
|
+
}));
|
|
336
|
+
var StyledGroupItems = styled("ul")`
|
|
337
|
+
padding: 0;
|
|
338
|
+
`;
|
|
339
|
+
|
|
340
|
+
// src/components/css-classes/css-class-convert-local.tsx
|
|
341
|
+
import * as React5 from "react";
|
|
342
|
+
import { deleteElementStyle, getElementSetting, updateElementSettings } from "@elementor/editor-elements";
|
|
343
|
+
import { classesPropTypeUtil } from "@elementor/editor-props";
|
|
344
|
+
import { createLocation } from "@elementor/locations";
|
|
345
|
+
import { useSessionStorage } from "@elementor/session";
|
|
346
|
+
|
|
347
|
+
// src/contexts/classes-prop-context.tsx
|
|
348
|
+
import * as React2 from "react";
|
|
349
|
+
import { createContext, useContext } from "react";
|
|
350
|
+
var Context = createContext(null);
|
|
351
|
+
function ClassesPropProvider({ children, prop }) {
|
|
352
|
+
return /* @__PURE__ */ React2.createElement(Context.Provider, { value: { prop } }, children);
|
|
353
|
+
}
|
|
354
|
+
function useClassesProp() {
|
|
355
|
+
const context = useContext(Context);
|
|
356
|
+
if (!context) {
|
|
357
|
+
throw new Error("useClassesProp must be used within a ClassesPropProvider");
|
|
358
|
+
}
|
|
359
|
+
return context.prop;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// src/contexts/element-context.tsx
|
|
363
|
+
import * as React3 from "react";
|
|
364
|
+
import { createContext as createContext2, useContext as useContext2 } from "react";
|
|
365
|
+
var Context2 = createContext2(null);
|
|
366
|
+
function ElementProvider({ children, element, elementType, settings }) {
|
|
367
|
+
return /* @__PURE__ */ React3.createElement(Context2.Provider, { value: { element, elementType, settings } }, children);
|
|
368
|
+
}
|
|
369
|
+
function useElement() {
|
|
370
|
+
const context = useContext2(Context2);
|
|
371
|
+
if (!context) {
|
|
372
|
+
throw new Error("useElement must be used within a ElementProvider");
|
|
373
|
+
}
|
|
374
|
+
return context;
|
|
375
|
+
}
|
|
376
|
+
function usePanelElementSetting(propKey) {
|
|
377
|
+
const context = useContext2(Context2);
|
|
378
|
+
if (!context) {
|
|
379
|
+
throw new Error("usePanelElementSetting must be used within a ElementProvider");
|
|
380
|
+
}
|
|
381
|
+
return context.settings[propKey] ?? null;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
// src/contexts/style-context.tsx
|
|
385
|
+
import * as React4 from "react";
|
|
386
|
+
import { createContext as createContext3, useContext as useContext3 } from "react";
|
|
387
|
+
import { stylesRepository, useUserStylesCapability } from "@elementor/editor-styles-repository";
|
|
388
|
+
|
|
389
|
+
// src/errors.ts
|
|
390
|
+
import { createError } from "@elementor/utils";
|
|
391
|
+
var ControlTypeNotFoundError = createError({
|
|
392
|
+
code: "control_type_not_found",
|
|
393
|
+
message: "Control type not found."
|
|
394
|
+
});
|
|
395
|
+
var ControlTypeAlreadyRegisteredError = createError({
|
|
396
|
+
code: "control_type_already_registered",
|
|
397
|
+
message: "Control type is already registered."
|
|
398
|
+
});
|
|
399
|
+
var ControlTypeNotRegisteredError = createError({
|
|
400
|
+
code: "control_type_not_registered",
|
|
401
|
+
message: "Control type is not registered."
|
|
402
|
+
});
|
|
403
|
+
var StylesProviderNotFoundError = createError({
|
|
404
|
+
code: "provider_not_found",
|
|
405
|
+
message: "Styles provider not found."
|
|
406
|
+
});
|
|
407
|
+
var StylesProviderCannotUpdatePropsError = createError({
|
|
408
|
+
code: "provider_cannot_update_props",
|
|
409
|
+
message: "Styles provider doesn't support updating props."
|
|
410
|
+
});
|
|
411
|
+
var StyleNotFoundUnderProviderError = createError({
|
|
412
|
+
code: "style_not_found_under_provider",
|
|
413
|
+
message: "Style not found under the provider."
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// src/contexts/style-context.tsx
|
|
417
|
+
var Context3 = createContext3(null);
|
|
418
|
+
function StyleProvider({ children, ...props }) {
|
|
419
|
+
const provider = props.id === null ? null : getProviderByStyleId(props.id);
|
|
420
|
+
const { userCan } = useUserStylesCapability();
|
|
421
|
+
if (props.id && !provider) {
|
|
422
|
+
throw new StylesProviderNotFoundError({ context: { styleId: props.id } });
|
|
423
|
+
}
|
|
424
|
+
const canEdit = userCan(provider?.getKey() ?? "").updateProps;
|
|
425
|
+
return /* @__PURE__ */ React4.createElement(Context3.Provider, { value: { ...props, provider, canEdit } }, children);
|
|
426
|
+
}
|
|
427
|
+
function useStyle() {
|
|
428
|
+
const context = useContext3(Context3);
|
|
429
|
+
if (!context) {
|
|
430
|
+
throw new Error("useStyle must be used within a StyleProvider");
|
|
431
|
+
}
|
|
432
|
+
return context;
|
|
433
|
+
}
|
|
434
|
+
function getProviderByStyleId(styleId) {
|
|
435
|
+
const styleProvider = stylesRepository.getProviders().find((provider) => {
|
|
436
|
+
return provider.actions.all().find((style) => style.id === styleId);
|
|
437
|
+
});
|
|
438
|
+
return styleProvider ?? null;
|
|
439
|
+
}
|
|
440
|
+
function useIsStyle() {
|
|
441
|
+
return !!useContext3(Context3);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
// src/components/css-classes/consts.ts
|
|
445
|
+
var PENDING_CLASS_RENAME_SESSION_KEY = "pending-class-rename-id";
|
|
446
|
+
|
|
447
|
+
// src/components/css-classes/css-class-convert-local.tsx
|
|
448
|
+
var { Slot: CssClassConvertSlot, inject: injectIntoCssClassConvert } = createLocation();
|
|
449
|
+
var CssClassConvert = (props) => {
|
|
450
|
+
const { element } = useElement();
|
|
451
|
+
const elementId = element.id;
|
|
452
|
+
const currentClassesProp = useClassesProp();
|
|
453
|
+
const { setId: setActiveId } = useStyle();
|
|
454
|
+
const [, saveValue] = useSessionStorage(PENDING_CLASS_RENAME_SESSION_KEY, "app");
|
|
455
|
+
const successCallback = (newId) => {
|
|
456
|
+
if (!props.styleDef) {
|
|
457
|
+
throw new Error("Style definition is required for converting local class to global class.");
|
|
458
|
+
}
|
|
459
|
+
onConvert({
|
|
460
|
+
newId,
|
|
461
|
+
elementId,
|
|
462
|
+
classesProp: currentClassesProp,
|
|
463
|
+
styleDef: props.styleDef
|
|
464
|
+
});
|
|
465
|
+
saveValue(newId);
|
|
466
|
+
setActiveId(newId);
|
|
467
|
+
props.closeMenu();
|
|
468
|
+
};
|
|
469
|
+
return /* @__PURE__ */ React5.createElement(
|
|
470
|
+
CssClassConvertSlot,
|
|
471
|
+
{
|
|
472
|
+
canConvert: !!props.canConvert,
|
|
473
|
+
styleDef: props.styleDef,
|
|
474
|
+
successCallback
|
|
475
|
+
}
|
|
476
|
+
);
|
|
477
|
+
};
|
|
478
|
+
var onConvert = (opts) => {
|
|
479
|
+
const { newId, elementId, classesProp } = opts;
|
|
480
|
+
deleteElementStyle(elementId, opts.styleDef.id);
|
|
481
|
+
const currentUsedClasses = getElementSetting(elementId, classesProp) || { value: [] };
|
|
482
|
+
updateElementSettings({
|
|
483
|
+
id: elementId,
|
|
484
|
+
props: { [classesProp]: classesPropTypeUtil.create([newId, ...currentUsedClasses.value]) },
|
|
485
|
+
withHistory: false
|
|
486
|
+
});
|
|
487
|
+
};
|
|
488
|
+
|
|
489
|
+
// src/components/control-label.tsx
|
|
490
|
+
import * as React6 from "react";
|
|
491
|
+
import { ControlAdornments, ControlFormLabel } from "@elementor/editor-controls";
|
|
492
|
+
import { InfoCircleIcon } from "@elementor/icons";
|
|
493
|
+
import { Stack, Tooltip } from "@elementor/ui";
|
|
494
|
+
var ControlLabel = ({ children, infoTooltip }) => {
|
|
495
|
+
return /* @__PURE__ */ React6.createElement(Stack, { direction: "row", alignItems: "center", justifyItems: "start", gap: 0.25 }, /* @__PURE__ */ React6.createElement(ControlFormLabel, null, children), infoTooltip && /* @__PURE__ */ React6.createElement(Tooltip, { title: infoTooltip, placement: "top" }, /* @__PURE__ */ React6.createElement(InfoCircleIcon, { fontSize: "tiny" })), /* @__PURE__ */ React6.createElement(ControlAdornments, null));
|
|
496
|
+
};
|
|
497
|
+
|
|
498
|
+
// src/components/css-classes/css-class-selector.tsx
|
|
499
|
+
import * as React13 from "react";
|
|
500
|
+
import { useCallback as useCallback2, useRef, useState as useState4 } from "react";
|
|
501
|
+
import {
|
|
502
|
+
isElementsStylesProvider as isElementsStylesProvider4,
|
|
503
|
+
stylesRepository as stylesRepository7,
|
|
504
|
+
useProviders as useProviders2,
|
|
505
|
+
useUserStylesCapability as useUserStylesCapability5,
|
|
506
|
+
validateStyleLabel as validateStyleLabel2
|
|
507
|
+
} from "@elementor/editor-styles-repository";
|
|
508
|
+
import { InfoAlert, WarningInfotip } from "@elementor/editor-ui";
|
|
509
|
+
import { ColorSwatchIcon, MapPinIcon } from "@elementor/icons";
|
|
510
|
+
import { createLocation as createLocation2 } from "@elementor/locations";
|
|
511
|
+
import {
|
|
512
|
+
Box as Box2,
|
|
513
|
+
Button,
|
|
514
|
+
Chip as Chip3,
|
|
515
|
+
FormLabel,
|
|
516
|
+
Link,
|
|
517
|
+
Stack as Stack4,
|
|
518
|
+
Typography as Typography4
|
|
519
|
+
} from "@elementor/ui";
|
|
520
|
+
import { __ as __8 } from "@wordpress/i18n";
|
|
521
|
+
|
|
522
|
+
// src/utils/get-styles-provider-color.ts
|
|
523
|
+
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY, isElementsStylesProvider } from "@elementor/editor-styles-repository";
|
|
524
|
+
|
|
525
|
+
// src/provider-colors-registry.ts
|
|
526
|
+
var DEFAULT_COLORS = {
|
|
527
|
+
name: "default",
|
|
528
|
+
getThemeColor: null
|
|
529
|
+
};
|
|
530
|
+
var providerColorsRegistry = /* @__PURE__ */ new Map();
|
|
531
|
+
var registerStyleProviderToColors = (provider, colors) => {
|
|
532
|
+
providerColorsRegistry.set(provider, colors);
|
|
533
|
+
};
|
|
534
|
+
var getStyleProviderColors = (provider) => providerColorsRegistry.get(provider) ?? DEFAULT_COLORS;
|
|
535
|
+
|
|
536
|
+
// src/utils/get-styles-provider-color.ts
|
|
537
|
+
var getStylesProviderColorName = (provider) => {
|
|
538
|
+
if (!provider || provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
539
|
+
return "default";
|
|
540
|
+
}
|
|
541
|
+
if (isElementsStylesProvider(provider)) {
|
|
542
|
+
return "accent";
|
|
543
|
+
}
|
|
544
|
+
return getStyleProviderColors(provider).name;
|
|
545
|
+
};
|
|
546
|
+
var getStylesProviderThemeColor = (provider) => {
|
|
547
|
+
if (!provider || provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY) {
|
|
548
|
+
return null;
|
|
549
|
+
}
|
|
550
|
+
if (isElementsStylesProvider(provider)) {
|
|
551
|
+
return (theme) => theme.palette.accent.main;
|
|
552
|
+
}
|
|
553
|
+
return getStyleProviderColors(provider).getThemeColor;
|
|
554
|
+
};
|
|
555
|
+
function getTempStylesProviderThemeColor(provider) {
|
|
556
|
+
if (isElementsStylesProvider(provider)) {
|
|
557
|
+
return (theme) => theme.palette.primary.main;
|
|
558
|
+
}
|
|
559
|
+
return getStylesProviderThemeColor(provider);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
// src/utils/tracking/subscribe.ts
|
|
563
|
+
import { stylesRepository as stylesRepository2 } from "@elementor/editor-styles-repository";
|
|
564
|
+
var trackStyles = (provider, event, data) => {
|
|
565
|
+
const providerInstance = stylesRepository2.getProviderByKey(provider);
|
|
566
|
+
providerInstance?.actions.tracking?.({ event, ...data });
|
|
540
567
|
};
|
|
541
|
-
var ErrorText = React6.forwardRef(({ error = "error" }, ref) => {
|
|
542
|
-
return /* @__PURE__ */ React6.createElement(
|
|
543
|
-
Box,
|
|
544
|
-
{
|
|
545
|
-
ref,
|
|
546
|
-
sx: (theme) => ({
|
|
547
|
-
padding: theme.spacing(2)
|
|
548
|
-
})
|
|
549
|
-
},
|
|
550
|
-
/* @__PURE__ */ React6.createElement(Typography, { variant: "caption", sx: { color: "error.main", display: "inline-block" } }, error)
|
|
551
|
-
);
|
|
552
|
-
});
|
|
553
|
-
var StyledGroup = styled("li")`
|
|
554
|
-
&:not( :last-of-type ) {
|
|
555
|
-
border-bottom: 1px solid ${({ theme }) => theme.palette.divider};
|
|
556
|
-
}
|
|
557
|
-
`;
|
|
558
|
-
var StyledGroupHeader = styled(Box)(({ theme }) => ({
|
|
559
|
-
position: "sticky",
|
|
560
|
-
top: "-8px",
|
|
561
|
-
padding: theme.spacing(1, 2),
|
|
562
|
-
color: theme.palette.text.tertiary,
|
|
563
|
-
backgroundColor: theme.palette.primary.contrastText
|
|
564
|
-
}));
|
|
565
|
-
var StyledGroupItems = styled("ul")`
|
|
566
|
-
padding: 0;
|
|
567
|
-
`;
|
|
568
568
|
|
|
569
569
|
// src/components/css-classes/css-class-item.tsx
|
|
570
570
|
import * as React11 from "react";
|
|
@@ -583,7 +583,7 @@ import {
|
|
|
583
583
|
UnstableChipGroup,
|
|
584
584
|
usePopupState
|
|
585
585
|
} from "@elementor/ui";
|
|
586
|
-
import { __ as
|
|
586
|
+
import { __ as __6 } from "@wordpress/i18n";
|
|
587
587
|
|
|
588
588
|
// src/components/css-classes/css-class-context.tsx
|
|
589
589
|
import * as React7 from "react";
|
|
@@ -610,7 +610,7 @@ import {
|
|
|
610
610
|
} from "@elementor/editor-styles-repository";
|
|
611
611
|
import { MenuItemInfotip, MenuListItem as MenuListItem2 } from "@elementor/editor-ui";
|
|
612
612
|
import { bindMenu, Divider, Menu, MenuSubheader as MenuSubheader2, Stack as Stack2 } from "@elementor/ui";
|
|
613
|
-
import { __ as
|
|
613
|
+
import { __ as __5 } from "@wordpress/i18n";
|
|
614
614
|
|
|
615
615
|
// src/components/style-indicator.tsx
|
|
616
616
|
import { styled as styled2 } from "@elementor/ui";
|
|
@@ -629,19 +629,40 @@ var StyleIndicator = styled2("div", {
|
|
|
629
629
|
}};
|
|
630
630
|
`;
|
|
631
631
|
|
|
632
|
+
// src/components/style-states/pseudo-states.ts
|
|
633
|
+
import { __ } from "@wordpress/i18n";
|
|
634
|
+
var DEFAULT_PSEUDO_STATES = [
|
|
635
|
+
{ key: "normal", value: null, label: __("normal", "elementor") },
|
|
636
|
+
{ key: "hover", value: "hover", label: __("hover", "elementor") },
|
|
637
|
+
{ key: "focus", value: "focus", label: __("focus", "elementor") },
|
|
638
|
+
{ key: "active", value: "active", label: __("active", "elementor") }
|
|
639
|
+
];
|
|
640
|
+
|
|
641
|
+
// src/components/style-states/use-pseudo-states.ts
|
|
642
|
+
function usePseudoStates() {
|
|
643
|
+
const { elementType } = useElement();
|
|
644
|
+
const { pseudoStates = [] } = elementType;
|
|
645
|
+
const additionalStates = pseudoStates.map(({ name, value }) => ({
|
|
646
|
+
key: value,
|
|
647
|
+
value,
|
|
648
|
+
label: name
|
|
649
|
+
}));
|
|
650
|
+
return [...DEFAULT_PSEUDO_STATES, ...additionalStates];
|
|
651
|
+
}
|
|
652
|
+
|
|
632
653
|
// src/components/css-classes/duplicate-class-menu-item.tsx
|
|
633
654
|
import * as React8 from "react";
|
|
634
655
|
import { stylesRepository as stylesRepository4, useUserStylesCapability as useUserStylesCapability2 } from "@elementor/editor-styles-repository";
|
|
635
656
|
import { MenuListItem } from "@elementor/editor-ui";
|
|
636
657
|
import { useSessionStorage as useSessionStorage2 } from "@elementor/session";
|
|
637
|
-
import { __ as
|
|
658
|
+
import { __ as __3 } from "@wordpress/i18n";
|
|
638
659
|
|
|
639
660
|
// src/components/css-classes/use-apply-and-unapply-class.ts
|
|
640
661
|
import { useCallback, useMemo as useMemo2 } from "react";
|
|
641
662
|
import { getElementLabel } from "@elementor/editor-elements";
|
|
642
663
|
import { useGetStylesRepositoryCreateAction } from "@elementor/editor-styles-repository";
|
|
643
664
|
import { undoable } from "@elementor/editor-v1-adapters";
|
|
644
|
-
import { __ } from "@wordpress/i18n";
|
|
665
|
+
import { __ as __2 } from "@wordpress/i18n";
|
|
645
666
|
|
|
646
667
|
// src/apply-unapply-actions.ts
|
|
647
668
|
import { setDocumentModifiedStatus } from "@elementor/editor-documents";
|
|
@@ -705,7 +726,7 @@ function useUndoableApplyClass() {
|
|
|
705
726
|
{
|
|
706
727
|
title: getElementLabel(element.id),
|
|
707
728
|
subtitle: ({ classLabel }) => {
|
|
708
|
-
return
|
|
729
|
+
return __2(`class %s applied`, "elementor").replace("%s", classLabel);
|
|
709
730
|
}
|
|
710
731
|
}
|
|
711
732
|
);
|
|
@@ -732,7 +753,7 @@ function useUndoableUnapplyClass() {
|
|
|
732
753
|
{
|
|
733
754
|
title: getElementLabel(element.id),
|
|
734
755
|
subtitle: ({ classLabel }) => {
|
|
735
|
-
return
|
|
756
|
+
return __2(`class %s removed`, "elementor").replace("%s", classLabel);
|
|
736
757
|
}
|
|
737
758
|
}
|
|
738
759
|
);
|
|
@@ -769,9 +790,9 @@ function useCreateAndApplyClass() {
|
|
|
769
790
|
}
|
|
770
791
|
},
|
|
771
792
|
{
|
|
772
|
-
title:
|
|
793
|
+
title: __2("Class", "elementor"),
|
|
773
794
|
subtitle: ({ classLabel }) => {
|
|
774
|
-
return
|
|
795
|
+
return __2(`%s created`, "elementor").replace("%s", classLabel);
|
|
775
796
|
}
|
|
776
797
|
}
|
|
777
798
|
);
|
|
@@ -882,13 +903,13 @@ function DuplicateClassMenuItem({ closeMenu }) {
|
|
|
882
903
|
}
|
|
883
904
|
closeMenu();
|
|
884
905
|
};
|
|
885
|
-
return /* @__PURE__ */ React8.createElement(MenuListItem, { onClick: handleDuplicate },
|
|
906
|
+
return /* @__PURE__ */ React8.createElement(MenuListItem, { onClick: handleDuplicate }, __3("Duplicate", "elementor"));
|
|
886
907
|
}
|
|
887
908
|
|
|
888
909
|
// src/components/css-classes/local-class-sub-menu.tsx
|
|
889
910
|
import * as React9 from "react";
|
|
890
911
|
import { MenuSubheader } from "@elementor/ui";
|
|
891
|
-
import { __ as
|
|
912
|
+
import { __ as __4 } from "@wordpress/i18n";
|
|
892
913
|
|
|
893
914
|
// src/components/css-classes/use-can-convert-local-class-to-global.ts
|
|
894
915
|
import { isElementsStylesProvider as isElementsStylesProvider2 } from "@elementor/editor-styles-repository";
|
|
@@ -910,26 +931,10 @@ var useCanConvertLocalClassToGlobal = () => {
|
|
|
910
931
|
// src/components/css-classes/local-class-sub-menu.tsx
|
|
911
932
|
var LocalClassSubMenu = (props) => {
|
|
912
933
|
const { canConvert, styleDef } = useCanConvertLocalClassToGlobal();
|
|
913
|
-
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } },
|
|
934
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, /* @__PURE__ */ React9.createElement(MenuSubheader, { sx: { typography: "caption", color: "text.secondary", pb: 0.5, pt: 1 } }, __4("Local Class", "elementor")), /* @__PURE__ */ React9.createElement(CssClassConvert, { canConvert, styleDef, closeMenu: props.popupState.close }));
|
|
914
935
|
};
|
|
915
936
|
|
|
916
937
|
// src/components/css-classes/css-class-menu.tsx
|
|
917
|
-
var DEFAULT_PSEUDO_STATES = [
|
|
918
|
-
{ key: "normal", value: null, label: __4("normal", "elementor") },
|
|
919
|
-
{ key: "hover", value: "hover", label: __4("hover", "elementor") },
|
|
920
|
-
{ key: "focus", value: "focus", label: __4("focus", "elementor") },
|
|
921
|
-
{ key: "active", value: "active", label: __4("active", "elementor") }
|
|
922
|
-
];
|
|
923
|
-
function usePseudoStates() {
|
|
924
|
-
const { elementType } = useElement();
|
|
925
|
-
const { pseudoStates = [] } = elementType;
|
|
926
|
-
const additionalStates = pseudoStates.map(({ name, value }) => ({
|
|
927
|
-
key: value,
|
|
928
|
-
value,
|
|
929
|
-
label: name
|
|
930
|
-
}));
|
|
931
|
-
return [...DEFAULT_PSEUDO_STATES, ...additionalStates];
|
|
932
|
-
}
|
|
933
938
|
function CssClassMenu({ popupState, anchorEl, fixed }) {
|
|
934
939
|
const { provider } = useCssClass();
|
|
935
940
|
const isLocalStyle2 = provider ? isElementsStylesProvider3(provider) : true;
|
|
@@ -955,8 +960,23 @@ function CssClassMenu({ popupState, anchorEl, fixed }) {
|
|
|
955
960
|
disableAutoFocusItem: true
|
|
956
961
|
},
|
|
957
962
|
isLocalStyle2 && /* @__PURE__ */ React10.createElement(LocalClassSubMenu, { popupState }),
|
|
958
|
-
getMenuItemsByProvider({
|
|
959
|
-
|
|
963
|
+
getMenuItemsByProvider({
|
|
964
|
+
provider,
|
|
965
|
+
closeMenu: popupState.close,
|
|
966
|
+
fixed
|
|
967
|
+
}),
|
|
968
|
+
/* @__PURE__ */ React10.createElement(
|
|
969
|
+
MenuSubheader2,
|
|
970
|
+
{
|
|
971
|
+
sx: {
|
|
972
|
+
typography: "caption",
|
|
973
|
+
color: "text.secondary",
|
|
974
|
+
pb: 0.5,
|
|
975
|
+
pt: 1
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
__5("States", "elementor")
|
|
979
|
+
),
|
|
960
980
|
pseudoStates.map((state) => {
|
|
961
981
|
return /* @__PURE__ */ React10.createElement(
|
|
962
982
|
StateMenuItem,
|
|
@@ -976,8 +996,19 @@ function ClassStatesMenu({ closeMenu }) {
|
|
|
976
996
|
if (!elementStates.length) {
|
|
977
997
|
return null;
|
|
978
998
|
}
|
|
979
|
-
const customTitle =
|
|
980
|
-
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Divider, null), /* @__PURE__ */ React10.createElement(
|
|
999
|
+
const customTitle = __5("%s States", "elementor").replace("%s", elementTitle);
|
|
1000
|
+
return /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Divider, null), /* @__PURE__ */ React10.createElement(
|
|
1001
|
+
MenuSubheader2,
|
|
1002
|
+
{
|
|
1003
|
+
sx: {
|
|
1004
|
+
typography: "caption",
|
|
1005
|
+
color: "text.secondary",
|
|
1006
|
+
pb: 0.5,
|
|
1007
|
+
pt: 1
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
customTitle
|
|
1011
|
+
), elementStates.map((state) => {
|
|
981
1012
|
return /* @__PURE__ */ React10.createElement(
|
|
982
1013
|
StateMenuItem,
|
|
983
1014
|
{
|
|
@@ -991,10 +1022,10 @@ function ClassStatesMenu({ closeMenu }) {
|
|
|
991
1022
|
}
|
|
992
1023
|
var CLASS_STATES_MAP = {
|
|
993
1024
|
selected: {
|
|
994
|
-
label:
|
|
1025
|
+
label: __5("selected", "elementor")
|
|
995
1026
|
},
|
|
996
1027
|
disabled: {
|
|
997
|
-
label:
|
|
1028
|
+
label: __5("disabled", "elementor")
|
|
998
1029
|
}
|
|
999
1030
|
};
|
|
1000
1031
|
function useElementStates() {
|
|
@@ -1043,7 +1074,13 @@ function getMenuItemsByProvider({
|
|
|
1043
1074
|
MenuSubheader2,
|
|
1044
1075
|
{
|
|
1045
1076
|
key: "provider-label",
|
|
1046
|
-
sx: {
|
|
1077
|
+
sx: {
|
|
1078
|
+
typography: "caption",
|
|
1079
|
+
color: "text.secondary",
|
|
1080
|
+
pb: 0.5,
|
|
1081
|
+
pt: 1,
|
|
1082
|
+
textTransform: "capitalize"
|
|
1083
|
+
}
|
|
1047
1084
|
},
|
|
1048
1085
|
providerInstance?.labels?.singular
|
|
1049
1086
|
)
|
|
@@ -1087,12 +1124,12 @@ function StateMenuItem({ state, label, closeMenu, ...props }) {
|
|
|
1087
1124
|
MenuItemInfotip,
|
|
1088
1125
|
{
|
|
1089
1126
|
showInfoTip: disabled,
|
|
1090
|
-
content:
|
|
1127
|
+
content: __5("With your current role, you can only use existing states.", "elementor")
|
|
1091
1128
|
},
|
|
1092
1129
|
/* @__PURE__ */ React10.createElement(Stack2, { gap: 0.75, direction: "row", alignItems: "center" }, isStyled && /* @__PURE__ */ React10.createElement(
|
|
1093
1130
|
StyleIndicator,
|
|
1094
1131
|
{
|
|
1095
|
-
"aria-label":
|
|
1132
|
+
"aria-label": __5("Has style", "elementor"),
|
|
1096
1133
|
getColor: getTempStylesProviderThemeColor(provider ?? "")
|
|
1097
1134
|
}
|
|
1098
1135
|
), label)
|
|
@@ -1116,7 +1153,7 @@ function UnapplyClassMenuItem({ closeMenu, ...props }) {
|
|
|
1116
1153
|
closeMenu();
|
|
1117
1154
|
}
|
|
1118
1155
|
},
|
|
1119
|
-
|
|
1156
|
+
__5("Remove", "elementor")
|
|
1120
1157
|
) : null;
|
|
1121
1158
|
}
|
|
1122
1159
|
function RenameClassMenuItem({ closeMenu }) {
|
|
@@ -1139,12 +1176,12 @@ function RenameClassMenuItem({ closeMenu }) {
|
|
|
1139
1176
|
MenuItemInfotip,
|
|
1140
1177
|
{
|
|
1141
1178
|
showInfoTip: !isAllowed,
|
|
1142
|
-
content:
|
|
1179
|
+
content: __5(
|
|
1143
1180
|
"With your current role, you can use existing classes but can't modify them.",
|
|
1144
1181
|
"elementor"
|
|
1145
1182
|
)
|
|
1146
1183
|
},
|
|
1147
|
-
|
|
1184
|
+
__5("Rename", "elementor")
|
|
1148
1185
|
)
|
|
1149
1186
|
);
|
|
1150
1187
|
}
|
|
@@ -1244,7 +1281,7 @@ function CssClassItem(props) {
|
|
|
1244
1281
|
shape: "rounded",
|
|
1245
1282
|
color,
|
|
1246
1283
|
...bindTrigger(popupState),
|
|
1247
|
-
"aria-label":
|
|
1284
|
+
"aria-label": __6("Open CSS Class Menu", "elementor"),
|
|
1248
1285
|
sx: (theme) => ({
|
|
1249
1286
|
borderRadius: `${theme.shape.borderRadius * 0.75}px`,
|
|
1250
1287
|
paddingRight: 0,
|
|
@@ -1267,7 +1304,7 @@ var validateLabel = (newLabel) => {
|
|
|
1267
1304
|
import * as React12 from "react";
|
|
1268
1305
|
import { AlertTriangleFilledIcon } from "@elementor/icons";
|
|
1269
1306
|
import { Alert, AlertTitle, Typography as Typography3 } from "@elementor/ui";
|
|
1270
|
-
import { __ as
|
|
1307
|
+
import { __ as __7 } from "@wordpress/i18n";
|
|
1271
1308
|
function MissingClassesAlert({ onDismiss }) {
|
|
1272
1309
|
return /* @__PURE__ */ React12.createElement(
|
|
1273
1310
|
Alert,
|
|
@@ -1278,8 +1315,8 @@ function MissingClassesAlert({ onDismiss }) {
|
|
|
1278
1315
|
icon: /* @__PURE__ */ React12.createElement(AlertTriangleFilledIcon, { fontSize: "tiny" }),
|
|
1279
1316
|
sx: { mt: 1 }
|
|
1280
1317
|
},
|
|
1281
|
-
/* @__PURE__ */ React12.createElement(AlertTitle, null,
|
|
1282
|
-
/* @__PURE__ */ React12.createElement(Typography3, { variant: "caption", textColor: "primary" },
|
|
1318
|
+
/* @__PURE__ */ React12.createElement(AlertTitle, null, __7("Some classes are missing", "elementor")),
|
|
1319
|
+
/* @__PURE__ */ React12.createElement(Typography3, { variant: "caption", textColor: "primary" }, __7("A class was removed from your site and is no longer active on this element", "elementor"))
|
|
1283
1320
|
);
|
|
1284
1321
|
}
|
|
1285
1322
|
|
|
@@ -1306,7 +1343,7 @@ function openClassManagerPanel() {
|
|
|
1306
1343
|
);
|
|
1307
1344
|
}
|
|
1308
1345
|
var EMPTY_OPTION = {
|
|
1309
|
-
label:
|
|
1346
|
+
label: __8("local", "elementor"),
|
|
1310
1347
|
value: null,
|
|
1311
1348
|
fixed: true,
|
|
1312
1349
|
color: getTempStylesProviderColorName("accent"),
|
|
@@ -1332,7 +1369,7 @@ function CssClassSelector() {
|
|
|
1332
1369
|
const clearMissingClasses = useCallback2(() => {
|
|
1333
1370
|
unapplyClasses(missingClassesIds);
|
|
1334
1371
|
}, [missingClassesIds, unapplyClasses]);
|
|
1335
|
-
return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" },
|
|
1372
|
+
return /* @__PURE__ */ React13.createElement(Stack4, { p: 2 }, /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1, alignItems: "center", justifyContent: "space-between" }, /* @__PURE__ */ React13.createElement(FormLabel, { htmlFor: ID, size: "small" }, __8("Classes", "elementor")), /* @__PURE__ */ React13.createElement(Stack4, { direction: "row", gap: 1 }, /* @__PURE__ */ React13.createElement(ClassSelectorActionsSlot, null))), /* @__PURE__ */ React13.createElement(
|
|
1336
1373
|
WarningInfotip,
|
|
1337
1374
|
{
|
|
1338
1375
|
open: Boolean(renameError),
|
|
@@ -1347,7 +1384,7 @@ function CssClassSelector() {
|
|
|
1347
1384
|
id: ID,
|
|
1348
1385
|
ref: autocompleteRef,
|
|
1349
1386
|
size: "tiny",
|
|
1350
|
-
placeholder: showPlaceholder ?
|
|
1387
|
+
placeholder: showPlaceholder ? __8("Type class name", "elementor") : void 0,
|
|
1351
1388
|
options: options13,
|
|
1352
1389
|
selected: appliedOptions,
|
|
1353
1390
|
entityName,
|
|
@@ -1392,7 +1429,7 @@ function CssClassSelector() {
|
|
|
1392
1429
|
})
|
|
1393
1430
|
}
|
|
1394
1431
|
)
|
|
1395
|
-
), hasMissingClasses && /* @__PURE__ */ React13.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React13.createElement(InfoAlert, { sx: { mt: 1 } },
|
|
1432
|
+
), hasMissingClasses && /* @__PURE__ */ React13.createElement(MissingClassesAlert, { onDismiss: clearMissingClasses }), !canEdit && /* @__PURE__ */ React13.createElement(InfoAlert, { sx: { mt: 1 } }, __8("With your current role, you can use existing classes but can\u2019t modify them.", "elementor")));
|
|
1396
1433
|
}
|
|
1397
1434
|
var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ React13.createElement(Box2, { sx: { py: 4 } }, /* @__PURE__ */ React13.createElement(
|
|
1398
1435
|
Stack4,
|
|
@@ -1404,11 +1441,11 @@ var EmptyStateLayout = ({ searchValue, onClear, children }) => /* @__PURE__ */ R
|
|
|
1404
1441
|
sx: { px: 2, m: "auto", maxWidth: "236px" }
|
|
1405
1442
|
},
|
|
1406
1443
|
/* @__PURE__ */ React13.createElement(ColorSwatchIcon, { sx: { transform: "rotate(90deg)" }, fontSize: "large" }),
|
|
1407
|
-
/* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "subtitle2" },
|
|
1444
|
+
/* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "subtitle2" }, __8("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React13.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
1408
1445
|
children,
|
|
1409
|
-
/* @__PURE__ */ React13.createElement(Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear },
|
|
1446
|
+
/* @__PURE__ */ React13.createElement(Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __8("Clear & try again", "elementor"))
|
|
1410
1447
|
));
|
|
1411
|
-
var EmptyState = (props) => /* @__PURE__ */ React13.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "caption", sx: { mb: 2 } },
|
|
1448
|
+
var EmptyState = (props) => /* @__PURE__ */ React13.createElement(EmptyStateLayout, { ...props }, /* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "caption", sx: { mb: 2 } }, __8("With your current role,", "elementor"), /* @__PURE__ */ React13.createElement("br", null), __8("you can only use existing classes.", "elementor")));
|
|
1412
1449
|
var LimitReachedEmptyState = ({
|
|
1413
1450
|
limitCount,
|
|
1414
1451
|
onClear
|
|
@@ -1426,9 +1463,9 @@ var LimitReachedEmptyState = ({
|
|
|
1426
1463
|
Typography4,
|
|
1427
1464
|
{ align: "center", variant: "subtitle2" },
|
|
1428
1465
|
/* translators: %s is the maximum number of classes */
|
|
1429
|
-
|
|
1466
|
+
__8("Limit of %s classes reached", "elementor").replace("%s", String(limitCount))
|
|
1430
1467
|
),
|
|
1431
|
-
/* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "caption", component: "div" },
|
|
1468
|
+
/* @__PURE__ */ React13.createElement(Typography4, { align: "center", variant: "caption", component: "div" }, __8("Remove a class to create a new one.", "elementor"), " ", /* @__PURE__ */ React13.createElement(
|
|
1432
1469
|
Link,
|
|
1433
1470
|
{
|
|
1434
1471
|
color: "inherit",
|
|
@@ -1437,7 +1474,7 @@ var LimitReachedEmptyState = ({
|
|
|
1437
1474
|
onClick: onClear,
|
|
1438
1475
|
sx: { verticalAlign: "baseline" }
|
|
1439
1476
|
},
|
|
1440
|
-
|
|
1477
|
+
__8("Clear", "elementor")
|
|
1441
1478
|
)),
|
|
1442
1479
|
/* @__PURE__ */ React13.createElement(
|
|
1443
1480
|
Button,
|
|
@@ -1450,7 +1487,7 @@ var LimitReachedEmptyState = ({
|
|
|
1450
1487
|
onClear();
|
|
1451
1488
|
}
|
|
1452
1489
|
},
|
|
1453
|
-
|
|
1490
|
+
__8("Class Manager", "elementor")
|
|
1454
1491
|
)
|
|
1455
1492
|
));
|
|
1456
1493
|
var updateClassByProvider = (provider, data) => {
|
|
@@ -1584,7 +1621,7 @@ import { getVariantByMeta } from "@elementor/editor-styles";
|
|
|
1584
1621
|
import { isElementsStylesProvider as isElementsStylesProvider5 } from "@elementor/editor-styles-repository";
|
|
1585
1622
|
import { ELEMENTS_STYLES_RESERVED_LABEL } from "@elementor/editor-styles-repository";
|
|
1586
1623
|
import { undoable as undoable2 } from "@elementor/editor-v1-adapters";
|
|
1587
|
-
import { __ as
|
|
1624
|
+
import { __ as __9 } from "@wordpress/i18n";
|
|
1588
1625
|
|
|
1589
1626
|
// src/hooks/use-styles-rerender.ts
|
|
1590
1627
|
import { useEffect as useEffect2, useReducer } from "react";
|
|
@@ -1697,21 +1734,21 @@ function getCurrentProps(style, meta) {
|
|
|
1697
1734
|
var defaultHistoryTitles = {
|
|
1698
1735
|
title: ({ provider }) => {
|
|
1699
1736
|
const providerLabel = provider.labels?.singular;
|
|
1700
|
-
return providerLabel ? capitalize(providerLabel) :
|
|
1737
|
+
return providerLabel ? capitalize(providerLabel) : __9("Style", "elementor");
|
|
1701
1738
|
},
|
|
1702
1739
|
subtitle: ({ provider, styleId, elementId, propDisplayName }) => {
|
|
1703
1740
|
const styleLabel = provider.actions.get(styleId, { elementId })?.label;
|
|
1704
1741
|
if (!styleLabel) {
|
|
1705
1742
|
throw new Error(`Style ${styleId} not found`);
|
|
1706
1743
|
}
|
|
1707
|
-
return
|
|
1744
|
+
return __9(`%s$1 %s$2 edited`, "elementor").replace("%s$1", styleLabel).replace("%s$2", propDisplayName);
|
|
1708
1745
|
}
|
|
1709
1746
|
};
|
|
1710
1747
|
var localStyleHistoryTitles = {
|
|
1711
1748
|
title: ({ elementId }) => getElementLabel2(elementId),
|
|
1712
1749
|
subtitle: ({ propDisplayName }) => (
|
|
1713
1750
|
// translators: %s is the name of the style property being edited
|
|
1714
|
-
|
|
1751
|
+
__9(`%s edited`, "elementor").replace("%s", propDisplayName)
|
|
1715
1752
|
)
|
|
1716
1753
|
};
|
|
1717
1754
|
function capitalize(str) {
|
|
@@ -1900,7 +1937,7 @@ var hasInheritedCustomCss = (style, meta) => {
|
|
|
1900
1937
|
};
|
|
1901
1938
|
|
|
1902
1939
|
// src/components/editing-panel.tsx
|
|
1903
|
-
import * as
|
|
1940
|
+
import * as React92 from "react";
|
|
1904
1941
|
import {
|
|
1905
1942
|
ControlActionsProvider,
|
|
1906
1943
|
ControlReplacementsProvider,
|
|
@@ -1914,7 +1951,7 @@ import { createLocation as createLocation5 } from "@elementor/locations";
|
|
|
1914
1951
|
import { controlActionsMenu } from "@elementor/menus";
|
|
1915
1952
|
import { SessionStorageProvider as SessionStorageProvider3 } from "@elementor/session";
|
|
1916
1953
|
import { ErrorBoundary } from "@elementor/ui";
|
|
1917
|
-
import { __ as
|
|
1954
|
+
import { __ as __65 } from "@wordpress/i18n";
|
|
1918
1955
|
|
|
1919
1956
|
// src/editing-panel-replacement-registry.tsx
|
|
1920
1957
|
var registry = /* @__PURE__ */ new Map();
|
|
@@ -1949,11 +1986,11 @@ var EditingPanelStickyPromotion = () => {
|
|
|
1949
1986
|
};
|
|
1950
1987
|
|
|
1951
1988
|
// src/components/editing-panel-tabs.tsx
|
|
1952
|
-
import { Fragment as
|
|
1953
|
-
import * as
|
|
1989
|
+
import { Fragment as Fragment10 } from "react";
|
|
1990
|
+
import * as React91 from "react";
|
|
1954
1991
|
import { getWidgetsCache as getWidgetsCache2 } from "@elementor/editor-elements";
|
|
1955
1992
|
import { Divider as Divider6, Stack as Stack14, Tab, TabPanel, Tabs, useTabs } from "@elementor/ui";
|
|
1956
|
-
import { __ as
|
|
1993
|
+
import { __ as __64 } from "@wordpress/i18n";
|
|
1957
1994
|
|
|
1958
1995
|
// src/contexts/scroll-context.tsx
|
|
1959
1996
|
import * as React17 from "react";
|
|
@@ -2518,7 +2555,7 @@ import { PropKeyProvider, PropProvider } from "@elementor/editor-controls";
|
|
|
2518
2555
|
import { setDocumentModifiedStatus as setDocumentModifiedStatus2 } from "@elementor/editor-documents";
|
|
2519
2556
|
import { getElementLabel as getElementLabel3, getElementSettings, updateElementSettings as updateElementSettings3 } from "@elementor/editor-elements";
|
|
2520
2557
|
import { undoable as undoable4 } from "@elementor/editor-v1-adapters";
|
|
2521
|
-
import { __ as
|
|
2558
|
+
import { __ as __10 } from "@wordpress/i18n";
|
|
2522
2559
|
|
|
2523
2560
|
// src/controls-registry/create-top-level-object-type.ts
|
|
2524
2561
|
var createTopLevelObjectType = ({ schema }) => {
|
|
@@ -2584,7 +2621,7 @@ function useUndoableUpdateElementProp({
|
|
|
2584
2621
|
{
|
|
2585
2622
|
title: getElementLabel3(elementId),
|
|
2586
2623
|
// translators: %s is the name of the property that was edited.
|
|
2587
|
-
subtitle:
|
|
2624
|
+
subtitle: __10("%s edited", "elementor").replace("%s", propDisplayName),
|
|
2588
2625
|
debounce: { wait: HISTORY_DEBOUNCE_WAIT2 }
|
|
2589
2626
|
}
|
|
2590
2627
|
);
|
|
@@ -2718,14 +2755,13 @@ function isControlHiddenByDependencies(control, propsSchema, settings) {
|
|
|
2718
2755
|
}
|
|
2719
2756
|
|
|
2720
2757
|
// src/components/style-tab.tsx
|
|
2721
|
-
import * as
|
|
2758
|
+
import * as React90 from "react";
|
|
2722
2759
|
import { useState as useState9 } from "react";
|
|
2723
2760
|
import { CLASSES_PROP_KEY } from "@elementor/editor-props";
|
|
2724
2761
|
import { useActiveBreakpoint } from "@elementor/editor-responsive";
|
|
2725
2762
|
import { createLocation as createLocation4 } from "@elementor/locations";
|
|
2726
2763
|
import { SessionStorageProvider as SessionStorageProvider2 } from "@elementor/session";
|
|
2727
2764
|
import { Box as Box7, Divider as Divider5, Stack as Stack13 } from "@elementor/ui";
|
|
2728
|
-
import { __ as __62 } from "@wordpress/i18n";
|
|
2729
2765
|
|
|
2730
2766
|
// src/contexts/styles-inheritance-context.tsx
|
|
2731
2767
|
import * as React26 from "react";
|
|
@@ -2736,6 +2772,21 @@ import { getBreakpointsTree as getBreakpointsTree2 } from "@elementor/editor-res
|
|
|
2736
2772
|
import { getStylesSchema } from "@elementor/editor-styles";
|
|
2737
2773
|
import { stylesRepository as stylesRepository8 } from "@elementor/editor-styles-repository";
|
|
2738
2774
|
|
|
2775
|
+
// src/hooks/use-default-style-tag-from-preview.ts
|
|
2776
|
+
import { getDefaultStyleTagFromPreviewElement } from "@elementor/editor-elements";
|
|
2777
|
+
import { __privateUseListenTo as useListenTo, commandEndEvent, windowEvent } from "@elementor/editor-v1-adapters";
|
|
2778
|
+
function useDefaultStyleTagFromPreview(elementId) {
|
|
2779
|
+
return useListenTo(
|
|
2780
|
+
[
|
|
2781
|
+
windowEvent("elementor/preview/atomic-widget/render"),
|
|
2782
|
+
commandEndEvent("document/elements/settings"),
|
|
2783
|
+
commandEndEvent("document/elements/set-settings"),
|
|
2784
|
+
commandEndEvent("document/elements/select")
|
|
2785
|
+
],
|
|
2786
|
+
() => getDefaultStyleTagFromPreviewElement(elementId)
|
|
2787
|
+
);
|
|
2788
|
+
}
|
|
2789
|
+
|
|
2739
2790
|
// src/styles-inheritance/create-styles-inheritance.ts
|
|
2740
2791
|
import {
|
|
2741
2792
|
isEmpty as isEmpty2,
|
|
@@ -3008,10 +3059,12 @@ function useInheritedValues(propKeys) {
|
|
|
3008
3059
|
var useAppliedStyles = () => {
|
|
3009
3060
|
const currentClassesProp = useClassesProp();
|
|
3010
3061
|
const baseStyles = useBaseStyles();
|
|
3062
|
+
const defaultTagStyleId = useDefaultTagStyleId();
|
|
3011
3063
|
useStylesRerender();
|
|
3012
3064
|
const classesProp = usePanelElementSetting(currentClassesProp);
|
|
3013
3065
|
const appliedStyles = classesPropTypeUtil3.extract(classesProp) ?? [];
|
|
3014
|
-
|
|
3066
|
+
const applicableIds = [...baseStyles, ...appliedStyles, ...defaultTagStyleId ? [defaultTagStyleId] : []];
|
|
3067
|
+
return stylesRepository8.all().filter((style) => applicableIds.includes(style.id));
|
|
3015
3068
|
};
|
|
3016
3069
|
var useBaseStyles = () => {
|
|
3017
3070
|
const { elementType } = useElement();
|
|
@@ -3019,6 +3072,10 @@ var useBaseStyles = () => {
|
|
|
3019
3072
|
const widgetCache = widgetsCache?.[elementType.key];
|
|
3020
3073
|
return Object.keys(widgetCache?.base_styles ?? {});
|
|
3021
3074
|
};
|
|
3075
|
+
var useDefaultTagStyleId = () => {
|
|
3076
|
+
const { element } = useElement();
|
|
3077
|
+
return useDefaultStyleTagFromPreview(element.id);
|
|
3078
|
+
};
|
|
3022
3079
|
|
|
3023
3080
|
// src/hooks/use-active-style-def-id.ts
|
|
3024
3081
|
import { getElementStyles } from "@elementor/editor-elements";
|
|
@@ -3051,10 +3108,16 @@ function useActiveAndAppliedClassId(id, appliedClassesIds) {
|
|
|
3051
3108
|
return isClassApplied ? id : null;
|
|
3052
3109
|
}
|
|
3053
3110
|
|
|
3111
|
+
// src/components/style-sections.tsx
|
|
3112
|
+
import * as React89 from "react";
|
|
3113
|
+
|
|
3114
|
+
// src/components/style-sections-definition.ts
|
|
3115
|
+
import { __ as __63 } from "@wordpress/i18n";
|
|
3116
|
+
|
|
3054
3117
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3055
3118
|
import * as React29 from "react";
|
|
3056
3119
|
import { BackgroundControl } from "@elementor/editor-controls";
|
|
3057
|
-
import { __ as
|
|
3120
|
+
import { __ as __11 } from "@wordpress/i18n";
|
|
3058
3121
|
|
|
3059
3122
|
// src/controls-registry/styles-field.tsx
|
|
3060
3123
|
import * as React27 from "react";
|
|
@@ -3227,7 +3290,7 @@ var SectionContent = ({
|
|
|
3227
3290
|
}) => /* @__PURE__ */ React28.createElement(Stack6, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3228
3291
|
|
|
3229
3292
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3230
|
-
var BACKGROUND_LABEL =
|
|
3293
|
+
var BACKGROUND_LABEL = __11("Background", "elementor");
|
|
3231
3294
|
var BackgroundSection = () => {
|
|
3232
3295
|
return /* @__PURE__ */ React29.createElement(SectionContent, null, /* @__PURE__ */ React29.createElement(StylesField, { bind: "background", propDisplayName: BACKGROUND_LABEL }, /* @__PURE__ */ React29.createElement(BackgroundControl, null)));
|
|
3233
3296
|
};
|
|
@@ -3238,7 +3301,7 @@ import * as React36 from "react";
|
|
|
3238
3301
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3239
3302
|
import * as React31 from "react";
|
|
3240
3303
|
import { ColorControl } from "@elementor/editor-controls";
|
|
3241
|
-
import { __ as
|
|
3304
|
+
import { __ as __12 } from "@wordpress/i18n";
|
|
3242
3305
|
|
|
3243
3306
|
// src/components/styles-field-layout.tsx
|
|
3244
3307
|
import * as React30 from "react";
|
|
@@ -3266,7 +3329,7 @@ var Column = React30.forwardRef(({ label, children, infoTooltip }, ref) => {
|
|
|
3266
3329
|
});
|
|
3267
3330
|
|
|
3268
3331
|
// src/components/style-sections/border-section/border-color-field.tsx
|
|
3269
|
-
var BORDER_COLOR_LABEL =
|
|
3332
|
+
var BORDER_COLOR_LABEL = __12("Border color", "elementor");
|
|
3270
3333
|
var BorderColorField = () => /* @__PURE__ */ React31.createElement(StylesField, { bind: "border-color", propDisplayName: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(StylesFieldLayout, { label: BORDER_COLOR_LABEL }, /* @__PURE__ */ React31.createElement(ColorControl, null)));
|
|
3271
3334
|
|
|
3272
3335
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
@@ -3281,7 +3344,7 @@ import {
|
|
|
3281
3344
|
RadiusTopRightIcon
|
|
3282
3345
|
} from "@elementor/icons";
|
|
3283
3346
|
import { withDirection } from "@elementor/ui";
|
|
3284
|
-
import { __ as
|
|
3347
|
+
import { __ as __13 } from "@wordpress/i18n";
|
|
3285
3348
|
|
|
3286
3349
|
// src/hooks/use-direction.ts
|
|
3287
3350
|
import { getElementorFrontendConfig } from "@elementor/editor-v1-adapters";
|
|
@@ -3301,19 +3364,19 @@ var UiProviders = ({ children }) => {
|
|
|
3301
3364
|
};
|
|
3302
3365
|
|
|
3303
3366
|
// src/components/style-sections/border-section/border-radius-field.tsx
|
|
3304
|
-
var BORDER_RADIUS_LABEL =
|
|
3367
|
+
var BORDER_RADIUS_LABEL = __13("Border radius", "elementor");
|
|
3305
3368
|
var StartStartIcon = withDirection(RadiusTopLeftIcon);
|
|
3306
3369
|
var StartEndIcon = withDirection(RadiusTopRightIcon);
|
|
3307
3370
|
var EndStartIcon = withDirection(RadiusBottomLeftIcon);
|
|
3308
3371
|
var EndEndIcon = withDirection(RadiusBottomRightIcon);
|
|
3309
|
-
var getStartStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3310
|
-
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3311
|
-
var getStartEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3312
|
-
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3313
|
-
var getEndStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
3314
|
-
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3315
|
-
var getEndEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
3316
|
-
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ?
|
|
3372
|
+
var getStartStartLabel = (isSiteRtl) => isSiteRtl ? __13("Top right", "elementor") : __13("Top left", "elementor");
|
|
3373
|
+
var getStartStartAriaLabel = (isSiteRtl) => isSiteRtl ? __13("Border top right radius", "elementor") : __13("Border top left radius", "elementor");
|
|
3374
|
+
var getStartEndLabel = (isSiteRtl) => isSiteRtl ? __13("Top left", "elementor") : __13("Top right", "elementor");
|
|
3375
|
+
var getStartEndAriaLabel = (isSiteRtl) => isSiteRtl ? __13("Border top left radius", "elementor") : __13("Border top right radius", "elementor");
|
|
3376
|
+
var getEndStartLabel = (isSiteRtl) => isSiteRtl ? __13("Bottom right", "elementor") : __13("Bottom left", "elementor");
|
|
3377
|
+
var getEndStartAriaLabel = (isSiteRtl) => isSiteRtl ? __13("Border bottom right radius", "elementor") : __13("Border bottom left radius", "elementor");
|
|
3378
|
+
var getEndEndLabel = (isSiteRtl) => isSiteRtl ? __13("Bottom left", "elementor") : __13("Bottom right", "elementor");
|
|
3379
|
+
var getEndEndAriaLabel = (isSiteRtl) => isSiteRtl ? __13("Border bottom left radius", "elementor") : __13("Border bottom right radius", "elementor");
|
|
3317
3380
|
var getCorners = (isSiteRtl) => [
|
|
3318
3381
|
{
|
|
3319
3382
|
label: getStartStartLabel(isSiteRtl),
|
|
@@ -3348,7 +3411,7 @@ var BorderRadiusField = () => {
|
|
|
3348
3411
|
items: getCorners(isSiteRtl),
|
|
3349
3412
|
label: BORDER_RADIUS_LABEL,
|
|
3350
3413
|
icon: /* @__PURE__ */ React33.createElement(BorderCornersIcon, { fontSize: "tiny" }),
|
|
3351
|
-
tooltipLabel:
|
|
3414
|
+
tooltipLabel: __13("Adjust corners", "elementor"),
|
|
3352
3415
|
multiSizePropTypeUtil: borderRadiusPropTypeUtil
|
|
3353
3416
|
}
|
|
3354
3417
|
)));
|
|
@@ -3357,18 +3420,18 @@ var BorderRadiusField = () => {
|
|
|
3357
3420
|
// src/components/style-sections/border-section/border-style-field.tsx
|
|
3358
3421
|
import * as React34 from "react";
|
|
3359
3422
|
import { SelectControl } from "@elementor/editor-controls";
|
|
3360
|
-
import { __ as
|
|
3361
|
-
var BORDER_TYPE_LABEL =
|
|
3423
|
+
import { __ as __14 } from "@wordpress/i18n";
|
|
3424
|
+
var BORDER_TYPE_LABEL = __14("Border type", "elementor");
|
|
3362
3425
|
var borderStyles = [
|
|
3363
|
-
{ value: "none", label:
|
|
3364
|
-
{ value: "solid", label:
|
|
3365
|
-
{ value: "dashed", label:
|
|
3366
|
-
{ value: "dotted", label:
|
|
3367
|
-
{ value: "double", label:
|
|
3368
|
-
{ value: "groove", label:
|
|
3369
|
-
{ value: "ridge", label:
|
|
3370
|
-
{ value: "inset", label:
|
|
3371
|
-
{ value: "outset", label:
|
|
3426
|
+
{ value: "none", label: __14("None", "elementor") },
|
|
3427
|
+
{ value: "solid", label: __14("Solid", "elementor") },
|
|
3428
|
+
{ value: "dashed", label: __14("Dashed", "elementor") },
|
|
3429
|
+
{ value: "dotted", label: __14("Dotted", "elementor") },
|
|
3430
|
+
{ value: "double", label: __14("Double", "elementor") },
|
|
3431
|
+
{ value: "groove", label: __14("Groove", "elementor") },
|
|
3432
|
+
{ value: "ridge", label: __14("Ridge", "elementor") },
|
|
3433
|
+
{ value: "inset", label: __14("Inset", "elementor") },
|
|
3434
|
+
{ value: "outset", label: __14("Outset", "elementor") }
|
|
3372
3435
|
];
|
|
3373
3436
|
var BorderStyleField = () => /* @__PURE__ */ React34.createElement(StylesField, { bind: "border-style", propDisplayName: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(StylesFieldLayout, { label: BORDER_TYPE_LABEL }, /* @__PURE__ */ React34.createElement(SelectControl, { options: borderStyles })));
|
|
3374
3437
|
|
|
@@ -3378,32 +3441,32 @@ import { EqualUnequalSizesControl as EqualUnequalSizesControl2 } from "@elemento
|
|
|
3378
3441
|
import { borderWidthPropTypeUtil } from "@elementor/editor-props";
|
|
3379
3442
|
import { SideAllIcon, SideBottomIcon, SideLeftIcon, SideRightIcon, SideTopIcon } from "@elementor/icons";
|
|
3380
3443
|
import { withDirection as withDirection2 } from "@elementor/ui";
|
|
3381
|
-
import { __ as
|
|
3382
|
-
var BORDER_WIDTH_LABEL =
|
|
3444
|
+
import { __ as __15 } from "@wordpress/i18n";
|
|
3445
|
+
var BORDER_WIDTH_LABEL = __15("Border width", "elementor");
|
|
3383
3446
|
var InlineStartIcon = withDirection2(SideRightIcon);
|
|
3384
3447
|
var InlineEndIcon = withDirection2(SideLeftIcon);
|
|
3385
3448
|
var getEdges = (isSiteRtl) => [
|
|
3386
3449
|
{
|
|
3387
|
-
label:
|
|
3388
|
-
ariaLabel:
|
|
3450
|
+
label: __15("Top", "elementor"),
|
|
3451
|
+
ariaLabel: __15("Border top width", "elementor"),
|
|
3389
3452
|
icon: /* @__PURE__ */ React35.createElement(SideTopIcon, { fontSize: "tiny" }),
|
|
3390
3453
|
bind: "block-start"
|
|
3391
3454
|
},
|
|
3392
3455
|
{
|
|
3393
|
-
label: isSiteRtl ?
|
|
3394
|
-
ariaLabel: isSiteRtl ?
|
|
3456
|
+
label: isSiteRtl ? __15("Left", "elementor") : __15("Right", "elementor"),
|
|
3457
|
+
ariaLabel: isSiteRtl ? __15("Border left width", "elementor") : __15("Border right width", "elementor"),
|
|
3395
3458
|
icon: /* @__PURE__ */ React35.createElement(InlineStartIcon, { fontSize: "tiny" }),
|
|
3396
3459
|
bind: "inline-end"
|
|
3397
3460
|
},
|
|
3398
3461
|
{
|
|
3399
|
-
label:
|
|
3400
|
-
ariaLabel:
|
|
3462
|
+
label: __15("Bottom", "elementor"),
|
|
3463
|
+
ariaLabel: __15("Border bottom width", "elementor"),
|
|
3401
3464
|
icon: /* @__PURE__ */ React35.createElement(SideBottomIcon, { fontSize: "tiny" }),
|
|
3402
3465
|
bind: "block-end"
|
|
3403
3466
|
},
|
|
3404
3467
|
{
|
|
3405
|
-
label: isSiteRtl ?
|
|
3406
|
-
ariaLabel: isSiteRtl ?
|
|
3468
|
+
label: isSiteRtl ? __15("Right", "elementor") : __15("Left", "elementor"),
|
|
3469
|
+
ariaLabel: isSiteRtl ? __15("Border right width", "elementor") : __15("Border left width", "elementor"),
|
|
3407
3470
|
icon: /* @__PURE__ */ React35.createElement(InlineEndIcon, { fontSize: "tiny" }),
|
|
3408
3471
|
bind: "inline-start"
|
|
3409
3472
|
}
|
|
@@ -3416,7 +3479,7 @@ var BorderWidthField = () => {
|
|
|
3416
3479
|
items: getEdges(isSiteRtl),
|
|
3417
3480
|
label: BORDER_WIDTH_LABEL,
|
|
3418
3481
|
icon: /* @__PURE__ */ React35.createElement(SideAllIcon, { fontSize: "tiny" }),
|
|
3419
|
-
tooltipLabel:
|
|
3482
|
+
tooltipLabel: __15("Adjust borders", "elementor"),
|
|
3420
3483
|
multiSizePropTypeUtil: borderWidthPropTypeUtil
|
|
3421
3484
|
}
|
|
3422
3485
|
));
|
|
@@ -3433,7 +3496,7 @@ import {
|
|
|
3433
3496
|
TransformRepeaterControl,
|
|
3434
3497
|
TransitionRepeaterControl
|
|
3435
3498
|
} from "@elementor/editor-controls";
|
|
3436
|
-
import { __ as
|
|
3499
|
+
import { __ as __18 } from "@wordpress/i18n";
|
|
3437
3500
|
|
|
3438
3501
|
// src/utils/can-element-have-children.ts
|
|
3439
3502
|
import { getContainer } from "@elementor/editor-elements";
|
|
@@ -3481,25 +3544,25 @@ var PanelDivider = () => /* @__PURE__ */ React37.createElement(Divider4, { sx: {
|
|
|
3481
3544
|
// src/components/style-sections/effects-section/blend-mode-field.tsx
|
|
3482
3545
|
import * as React38 from "react";
|
|
3483
3546
|
import { SelectControl as SelectControl2 } from "@elementor/editor-controls";
|
|
3484
|
-
import { __ as
|
|
3485
|
-
var BLEND_MODE_LABEL =
|
|
3547
|
+
import { __ as __16 } from "@wordpress/i18n";
|
|
3548
|
+
var BLEND_MODE_LABEL = __16("Blend mode", "elementor");
|
|
3486
3549
|
var blendModeOptions = [
|
|
3487
|
-
{ label:
|
|
3488
|
-
{ label:
|
|
3489
|
-
{ label:
|
|
3490
|
-
{ label:
|
|
3491
|
-
{ label:
|
|
3492
|
-
{ label:
|
|
3493
|
-
{ label:
|
|
3494
|
-
{ label:
|
|
3495
|
-
{ label:
|
|
3496
|
-
{ label:
|
|
3497
|
-
{ label:
|
|
3498
|
-
{ label:
|
|
3499
|
-
{ label:
|
|
3500
|
-
{ label:
|
|
3501
|
-
{ label:
|
|
3502
|
-
{ label:
|
|
3550
|
+
{ label: __16("Normal", "elementor"), value: "normal" },
|
|
3551
|
+
{ label: __16("Multiply", "elementor"), value: "multiply" },
|
|
3552
|
+
{ label: __16("Screen", "elementor"), value: "screen" },
|
|
3553
|
+
{ label: __16("Overlay", "elementor"), value: "overlay" },
|
|
3554
|
+
{ label: __16("Darken", "elementor"), value: "darken" },
|
|
3555
|
+
{ label: __16("Lighten", "elementor"), value: "lighten" },
|
|
3556
|
+
{ label: __16("Color dodge", "elementor"), value: "color-dodge" },
|
|
3557
|
+
{ label: __16("Color burn", "elementor"), value: "color-burn" },
|
|
3558
|
+
{ label: __16("Saturation", "elementor"), value: "saturation" },
|
|
3559
|
+
{ label: __16("Color", "elementor"), value: "color" },
|
|
3560
|
+
{ label: __16("Difference", "elementor"), value: "difference" },
|
|
3561
|
+
{ label: __16("Exclusion", "elementor"), value: "exclusion" },
|
|
3562
|
+
{ label: __16("Hue", "elementor"), value: "hue" },
|
|
3563
|
+
{ label: __16("Luminosity", "elementor"), value: "luminosity" },
|
|
3564
|
+
{ label: __16("Soft light", "elementor"), value: "soft-light" },
|
|
3565
|
+
{ label: __16("Hard light", "elementor"), value: "hard-light" }
|
|
3503
3566
|
];
|
|
3504
3567
|
var BlendModeField = () => {
|
|
3505
3568
|
return /* @__PURE__ */ React38.createElement(StylesField, { bind: "mix-blend-mode", propDisplayName: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(StylesFieldLayout, { label: BLEND_MODE_LABEL }, /* @__PURE__ */ React38.createElement(SelectControl2, { options: blendModeOptions })));
|
|
@@ -3509,19 +3572,19 @@ var BlendModeField = () => {
|
|
|
3509
3572
|
import * as React39 from "react";
|
|
3510
3573
|
import { useRef as useRef5 } from "react";
|
|
3511
3574
|
import { SizeControl as SizeControl2 } from "@elementor/editor-controls";
|
|
3512
|
-
import { __ as
|
|
3513
|
-
var OPACITY_LABEL =
|
|
3575
|
+
import { __ as __17 } from "@wordpress/i18n";
|
|
3576
|
+
var OPACITY_LABEL = __17("Opacity", "elementor");
|
|
3514
3577
|
var OpacityControlField = () => {
|
|
3515
3578
|
const rowRef = useRef5(null);
|
|
3516
3579
|
return /* @__PURE__ */ React39.createElement(StylesField, { bind: "opacity", propDisplayName: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(StylesFieldLayout, { ref: rowRef, label: OPACITY_LABEL }, /* @__PURE__ */ React39.createElement(SizeControl2, { units: ["%"], anchorRef: rowRef, defaultUnit: "%" })));
|
|
3517
3580
|
};
|
|
3518
3581
|
|
|
3519
3582
|
// src/components/style-sections/effects-section/effects-section.tsx
|
|
3520
|
-
var BOX_SHADOW_LABEL =
|
|
3521
|
-
var FILTER_LABEL =
|
|
3522
|
-
var TRANSFORM_LABEL =
|
|
3523
|
-
var BACKDROP_FILTER_LABEL =
|
|
3524
|
-
var TRANSITIONS_LABEL =
|
|
3583
|
+
var BOX_SHADOW_LABEL = __18("Box shadow", "elementor");
|
|
3584
|
+
var FILTER_LABEL = __18("Filters", "elementor");
|
|
3585
|
+
var TRANSFORM_LABEL = __18("Transform", "elementor");
|
|
3586
|
+
var BACKDROP_FILTER_LABEL = __18("Backdrop filters", "elementor");
|
|
3587
|
+
var TRANSITIONS_LABEL = __18("Transitions", "elementor");
|
|
3525
3588
|
var EffectsSection = () => {
|
|
3526
3589
|
const { element } = useElement();
|
|
3527
3590
|
const { meta } = useStyle();
|
|
@@ -3540,17 +3603,17 @@ import * as React61 from "react";
|
|
|
3540
3603
|
import { ControlFormLabel as ControlFormLabel2 } from "@elementor/editor-controls";
|
|
3541
3604
|
import { useParentElement } from "@elementor/editor-elements";
|
|
3542
3605
|
import { createLocation as createLocation3 } from "@elementor/locations";
|
|
3543
|
-
import { __ as
|
|
3606
|
+
import { __ as __38 } from "@wordpress/i18n";
|
|
3544
3607
|
|
|
3545
3608
|
// src/hooks/use-computed-style.ts
|
|
3546
|
-
import { __privateUseListenTo as
|
|
3609
|
+
import { __privateUseListenTo as useListenTo2, commandEndEvent as commandEndEvent2, windowEvent as windowEvent2 } from "@elementor/editor-v1-adapters";
|
|
3547
3610
|
function useComputedStyle(elementId) {
|
|
3548
|
-
return
|
|
3611
|
+
return useListenTo2(
|
|
3549
3612
|
[
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3613
|
+
windowEvent2("elementor/device-mode/change"),
|
|
3614
|
+
commandEndEvent2("document/elements/reset-style"),
|
|
3615
|
+
commandEndEvent2("document/elements/settings"),
|
|
3616
|
+
commandEndEvent2("document/elements/paste-style")
|
|
3554
3617
|
],
|
|
3555
3618
|
() => {
|
|
3556
3619
|
if (!elementId) {
|
|
@@ -3574,7 +3637,7 @@ import { CollapsibleContent } from "@elementor/editor-ui";
|
|
|
3574
3637
|
import * as React41 from "react";
|
|
3575
3638
|
import { isElementsStylesProvider as isElementsStylesProvider6 } from "@elementor/editor-styles-repository";
|
|
3576
3639
|
import { Stack as Stack8, Tooltip as Tooltip2 } from "@elementor/ui";
|
|
3577
|
-
import { __ as
|
|
3640
|
+
import { __ as __19 } from "@wordpress/i18n";
|
|
3578
3641
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
3579
3642
|
const { id, meta, provider } = useStyle();
|
|
3580
3643
|
const snapshot = useStylesInheritanceSnapshot();
|
|
@@ -3588,9 +3651,9 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
3588
3651
|
if (!hasValues && !hasOverrides) {
|
|
3589
3652
|
return null;
|
|
3590
3653
|
}
|
|
3591
|
-
const hasValueLabel =
|
|
3592
|
-
const hasOverridesLabel =
|
|
3593
|
-
return /* @__PURE__ */ React41.createElement(Tooltip2, { title:
|
|
3654
|
+
const hasValueLabel = __19("Has effective styles", "elementor");
|
|
3655
|
+
const hasOverridesLabel = __19("Has overridden styles", "elementor");
|
|
3656
|
+
return /* @__PURE__ */ React41.createElement(Tooltip2, { title: __19("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React41.createElement(Stack8, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React41.createElement(
|
|
3594
3657
|
StyleIndicator,
|
|
3595
3658
|
{
|
|
3596
3659
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -3659,14 +3722,14 @@ import {
|
|
|
3659
3722
|
JustifyTopIcon
|
|
3660
3723
|
} from "@elementor/icons";
|
|
3661
3724
|
import { withDirection as withDirection3 } from "@elementor/ui";
|
|
3662
|
-
import { __ as
|
|
3725
|
+
import { __ as __21 } from "@wordpress/i18n";
|
|
3663
3726
|
|
|
3664
3727
|
// src/components/style-sections/layout-section/utils/rotated-icon.tsx
|
|
3665
3728
|
import * as React43 from "react";
|
|
3666
3729
|
import { useRef as useRef6 } from "react";
|
|
3667
3730
|
import { useTheme as useTheme2 } from "@elementor/ui";
|
|
3668
|
-
import { __ as
|
|
3669
|
-
var FLEX_DIRECTION_LABEL =
|
|
3731
|
+
import { __ as __20 } from "@wordpress/i18n";
|
|
3732
|
+
var FLEX_DIRECTION_LABEL = __20("Flex direction", "elementor");
|
|
3670
3733
|
var CLOCKWISE_ANGLES = {
|
|
3671
3734
|
row: 0,
|
|
3672
3735
|
column: 90,
|
|
@@ -3709,7 +3772,7 @@ var useGetTargetAngle = (isClockwise, offset, disableRotationForReversed, existi
|
|
|
3709
3772
|
};
|
|
3710
3773
|
|
|
3711
3774
|
// src/components/style-sections/layout-section/align-content-field.tsx
|
|
3712
|
-
var ALIGN_CONTENT_LABEL =
|
|
3775
|
+
var ALIGN_CONTENT_LABEL = __21("Align content", "elementor");
|
|
3713
3776
|
var StartIcon = withDirection3(JustifyTopIcon);
|
|
3714
3777
|
var EndIcon = withDirection3(JustifyBottomIcon);
|
|
3715
3778
|
var iconProps = {
|
|
@@ -3720,37 +3783,37 @@ var iconProps = {
|
|
|
3720
3783
|
var options = [
|
|
3721
3784
|
{
|
|
3722
3785
|
value: "start",
|
|
3723
|
-
label:
|
|
3786
|
+
label: __21("Start", "elementor"),
|
|
3724
3787
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: StartIcon, size, ...iconProps }),
|
|
3725
3788
|
showTooltip: true
|
|
3726
3789
|
},
|
|
3727
3790
|
{
|
|
3728
3791
|
value: "center",
|
|
3729
|
-
label:
|
|
3792
|
+
label: __21("Center", "elementor"),
|
|
3730
3793
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: CenterIcon, size, ...iconProps }),
|
|
3731
3794
|
showTooltip: true
|
|
3732
3795
|
},
|
|
3733
3796
|
{
|
|
3734
3797
|
value: "end",
|
|
3735
|
-
label:
|
|
3798
|
+
label: __21("End", "elementor"),
|
|
3736
3799
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EndIcon, size, ...iconProps }),
|
|
3737
3800
|
showTooltip: true
|
|
3738
3801
|
},
|
|
3739
3802
|
{
|
|
3740
3803
|
value: "space-between",
|
|
3741
|
-
label:
|
|
3804
|
+
label: __21("Space between", "elementor"),
|
|
3742
3805
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: BetweenIcon, size, ...iconProps }),
|
|
3743
3806
|
showTooltip: true
|
|
3744
3807
|
},
|
|
3745
3808
|
{
|
|
3746
3809
|
value: "space-around",
|
|
3747
|
-
label:
|
|
3810
|
+
label: __21("Space around", "elementor"),
|
|
3748
3811
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: AroundIcon, size, ...iconProps }),
|
|
3749
3812
|
showTooltip: true
|
|
3750
3813
|
},
|
|
3751
3814
|
{
|
|
3752
3815
|
value: "space-evenly",
|
|
3753
|
-
label:
|
|
3816
|
+
label: __21("Space evenly", "elementor"),
|
|
3754
3817
|
renderContent: ({ size }) => /* @__PURE__ */ React44.createElement(RotatedIcon, { icon: EvenlyIcon, size, ...iconProps }),
|
|
3755
3818
|
showTooltip: true
|
|
3756
3819
|
}
|
|
@@ -3767,8 +3830,8 @@ import {
|
|
|
3767
3830
|
LayoutDistributeVerticalIcon as JustifyIcon
|
|
3768
3831
|
} from "@elementor/icons";
|
|
3769
3832
|
import { withDirection as withDirection4 } from "@elementor/ui";
|
|
3770
|
-
import { __ as
|
|
3771
|
-
var ALIGN_ITEMS_LABEL =
|
|
3833
|
+
import { __ as __22 } from "@wordpress/i18n";
|
|
3834
|
+
var ALIGN_ITEMS_LABEL = __22("Align items", "elementor");
|
|
3772
3835
|
var StartIcon2 = withDirection4(LayoutAlignLeftIcon);
|
|
3773
3836
|
var EndIcon2 = withDirection4(LayoutAlignRightIcon);
|
|
3774
3837
|
var iconProps2 = {
|
|
@@ -3778,25 +3841,25 @@ var iconProps2 = {
|
|
|
3778
3841
|
var options2 = [
|
|
3779
3842
|
{
|
|
3780
3843
|
value: "start",
|
|
3781
|
-
label:
|
|
3844
|
+
label: __22("Start", "elementor"),
|
|
3782
3845
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: StartIcon2, size, ...iconProps2 }),
|
|
3783
3846
|
showTooltip: true
|
|
3784
3847
|
},
|
|
3785
3848
|
{
|
|
3786
3849
|
value: "center",
|
|
3787
|
-
label:
|
|
3850
|
+
label: __22("Center", "elementor"),
|
|
3788
3851
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: CenterIcon2, size, ...iconProps2 }),
|
|
3789
3852
|
showTooltip: true
|
|
3790
3853
|
},
|
|
3791
3854
|
{
|
|
3792
3855
|
value: "end",
|
|
3793
|
-
label:
|
|
3856
|
+
label: __22("End", "elementor"),
|
|
3794
3857
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: EndIcon2, size, ...iconProps2 }),
|
|
3795
3858
|
showTooltip: true
|
|
3796
3859
|
},
|
|
3797
3860
|
{
|
|
3798
3861
|
value: "stretch",
|
|
3799
|
-
label:
|
|
3862
|
+
label: __22("Stretch", "elementor"),
|
|
3800
3863
|
renderContent: ({ size }) => /* @__PURE__ */ React45.createElement(RotatedIcon, { icon: JustifyIcon, size, ...iconProps2 }),
|
|
3801
3864
|
showTooltip: true
|
|
3802
3865
|
}
|
|
@@ -3815,8 +3878,8 @@ import {
|
|
|
3815
3878
|
LayoutDistributeVerticalIcon as JustifyIcon2
|
|
3816
3879
|
} from "@elementor/icons";
|
|
3817
3880
|
import { withDirection as withDirection5 } from "@elementor/ui";
|
|
3818
|
-
import { __ as
|
|
3819
|
-
var ALIGN_SELF_LABEL =
|
|
3881
|
+
import { __ as __23 } from "@wordpress/i18n";
|
|
3882
|
+
var ALIGN_SELF_LABEL = __23("Align self", "elementor");
|
|
3820
3883
|
var ALIGN_SELF_CHILD_OFFSET_MAP = {
|
|
3821
3884
|
row: 90,
|
|
3822
3885
|
"row-reverse": 90,
|
|
@@ -3831,7 +3894,7 @@ var iconProps3 = {
|
|
|
3831
3894
|
var getOptions = (parentStyleDirection) => [
|
|
3832
3895
|
{
|
|
3833
3896
|
value: "start",
|
|
3834
|
-
label:
|
|
3897
|
+
label: __23("Start", "elementor"),
|
|
3835
3898
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3836
3899
|
RotatedIcon,
|
|
3837
3900
|
{
|
|
@@ -3845,7 +3908,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3845
3908
|
},
|
|
3846
3909
|
{
|
|
3847
3910
|
value: "center",
|
|
3848
|
-
label:
|
|
3911
|
+
label: __23("Center", "elementor"),
|
|
3849
3912
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3850
3913
|
RotatedIcon,
|
|
3851
3914
|
{
|
|
@@ -3859,7 +3922,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3859
3922
|
},
|
|
3860
3923
|
{
|
|
3861
3924
|
value: "end",
|
|
3862
|
-
label:
|
|
3925
|
+
label: __23("End", "elementor"),
|
|
3863
3926
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3864
3927
|
RotatedIcon,
|
|
3865
3928
|
{
|
|
@@ -3873,7 +3936,7 @@ var getOptions = (parentStyleDirection) => [
|
|
|
3873
3936
|
},
|
|
3874
3937
|
{
|
|
3875
3938
|
value: "stretch",
|
|
3876
|
-
label:
|
|
3939
|
+
label: __23("Stretch", "elementor"),
|
|
3877
3940
|
renderContent: ({ size }) => /* @__PURE__ */ React46.createElement(
|
|
3878
3941
|
RotatedIcon,
|
|
3879
3942
|
{
|
|
@@ -3897,8 +3960,8 @@ import {
|
|
|
3897
3960
|
JustifyTopIcon as JustifyTopIcon2,
|
|
3898
3961
|
LayoutDistributeVerticalIcon as JustifyIcon3
|
|
3899
3962
|
} from "@elementor/icons";
|
|
3900
|
-
import { __ as
|
|
3901
|
-
var ALIGN_SELF_LABEL2 =
|
|
3963
|
+
import { __ as __24 } from "@wordpress/i18n";
|
|
3964
|
+
var ALIGN_SELF_LABEL2 = __24("Align self", "elementor");
|
|
3902
3965
|
var ALIGN_SELF_CHILD_OFFSET_MAP2 = {
|
|
3903
3966
|
row: 0,
|
|
3904
3967
|
column: -90
|
|
@@ -3914,25 +3977,25 @@ var getOptions2 = (parentStyleDirection) => {
|
|
|
3914
3977
|
return [
|
|
3915
3978
|
{
|
|
3916
3979
|
value: "start",
|
|
3917
|
-
label:
|
|
3980
|
+
label: __24("Start", "elementor"),
|
|
3918
3981
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyTopIcon2, size, offset }),
|
|
3919
3982
|
showTooltip: true
|
|
3920
3983
|
},
|
|
3921
3984
|
{
|
|
3922
3985
|
value: "center",
|
|
3923
|
-
label:
|
|
3986
|
+
label: __24("Center", "elementor"),
|
|
3924
3987
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyCenterIcon, size, offset }),
|
|
3925
3988
|
showTooltip: true
|
|
3926
3989
|
},
|
|
3927
3990
|
{
|
|
3928
3991
|
value: "end",
|
|
3929
|
-
label:
|
|
3992
|
+
label: __24("End", "elementor"),
|
|
3930
3993
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyBottomIcon2, size, offset }),
|
|
3931
3994
|
showTooltip: true
|
|
3932
3995
|
},
|
|
3933
3996
|
{
|
|
3934
3997
|
value: "stretch",
|
|
3935
|
-
label:
|
|
3998
|
+
label: __24("Stretch", "elementor"),
|
|
3936
3999
|
renderContent: ({ size }) => /* @__PURE__ */ React47.createElement(RotatedIcon2, { icon: JustifyIcon3, size, offset }),
|
|
3937
4000
|
showTooltip: true
|
|
3938
4001
|
}
|
|
@@ -3942,43 +4005,43 @@ var getOptions2 = (parentStyleDirection) => {
|
|
|
3942
4005
|
// src/components/style-sections/layout-section/display-field.tsx
|
|
3943
4006
|
import * as React48 from "react";
|
|
3944
4007
|
import { ToggleControl as ToggleControl6 } from "@elementor/editor-controls";
|
|
3945
|
-
import { __ as
|
|
3946
|
-
var DISPLAY_LABEL =
|
|
4008
|
+
import { __ as __25 } from "@wordpress/i18n";
|
|
4009
|
+
var DISPLAY_LABEL = __25("Display", "elementor");
|
|
3947
4010
|
var displayFieldItems = [
|
|
3948
4011
|
{
|
|
3949
4012
|
value: "block",
|
|
3950
|
-
renderContent: () =>
|
|
3951
|
-
label:
|
|
4013
|
+
renderContent: () => __25("Block", "elementor"),
|
|
4014
|
+
label: __25("Block", "elementor"),
|
|
3952
4015
|
showTooltip: true
|
|
3953
4016
|
},
|
|
3954
4017
|
{
|
|
3955
4018
|
value: "flex",
|
|
3956
|
-
renderContent: () =>
|
|
3957
|
-
label:
|
|
4019
|
+
renderContent: () => __25("Flex", "elementor"),
|
|
4020
|
+
label: __25("Flex", "elementor"),
|
|
3958
4021
|
showTooltip: true
|
|
3959
4022
|
},
|
|
3960
4023
|
{
|
|
3961
4024
|
value: "grid",
|
|
3962
|
-
renderContent: () =>
|
|
3963
|
-
label:
|
|
4025
|
+
renderContent: () => __25("Grid", "elementor"),
|
|
4026
|
+
label: __25("Grid", "elementor"),
|
|
3964
4027
|
showTooltip: true
|
|
3965
4028
|
},
|
|
3966
4029
|
{
|
|
3967
4030
|
value: "none",
|
|
3968
|
-
renderContent: () =>
|
|
3969
|
-
label:
|
|
4031
|
+
renderContent: () => __25("None", "elementor"),
|
|
4032
|
+
label: __25("None", "elementor"),
|
|
3970
4033
|
showTooltip: true
|
|
3971
4034
|
},
|
|
3972
4035
|
{
|
|
3973
4036
|
value: "inline-block",
|
|
3974
|
-
renderContent: () =>
|
|
3975
|
-
label:
|
|
4037
|
+
renderContent: () => __25("In-blk", "elementor"),
|
|
4038
|
+
label: __25("Inline-block", "elementor"),
|
|
3976
4039
|
showTooltip: true
|
|
3977
4040
|
},
|
|
3978
4041
|
{
|
|
3979
4042
|
value: "inline-flex",
|
|
3980
|
-
renderContent: () =>
|
|
3981
|
-
label:
|
|
4043
|
+
renderContent: () => __25("In-flx", "elementor"),
|
|
4044
|
+
label: __25("Inline-flex", "elementor"),
|
|
3982
4045
|
showTooltip: true
|
|
3983
4046
|
}
|
|
3984
4047
|
];
|
|
@@ -3993,12 +4056,12 @@ import * as React49 from "react";
|
|
|
3993
4056
|
import { ToggleControl as ToggleControl7 } from "@elementor/editor-controls";
|
|
3994
4057
|
import { ArrowDownSmallIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpSmallIcon } from "@elementor/icons";
|
|
3995
4058
|
import { withDirection as withDirection6 } from "@elementor/ui";
|
|
3996
|
-
import { __ as
|
|
3997
|
-
var FLEX_DIRECTION_LABEL2 =
|
|
4059
|
+
import { __ as __26 } from "@wordpress/i18n";
|
|
4060
|
+
var FLEX_DIRECTION_LABEL2 = __26("Direction", "elementor");
|
|
3998
4061
|
var options3 = [
|
|
3999
4062
|
{
|
|
4000
4063
|
value: "row",
|
|
4001
|
-
label:
|
|
4064
|
+
label: __26("Row", "elementor"),
|
|
4002
4065
|
renderContent: ({ size }) => {
|
|
4003
4066
|
const StartIcon7 = withDirection6(ArrowRightIcon);
|
|
4004
4067
|
return /* @__PURE__ */ React49.createElement(StartIcon7, { fontSize: size });
|
|
@@ -4007,13 +4070,13 @@ var options3 = [
|
|
|
4007
4070
|
},
|
|
4008
4071
|
{
|
|
4009
4072
|
value: "column",
|
|
4010
|
-
label:
|
|
4073
|
+
label: __26("Column", "elementor"),
|
|
4011
4074
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowDownSmallIcon, { fontSize: size }),
|
|
4012
4075
|
showTooltip: true
|
|
4013
4076
|
},
|
|
4014
4077
|
{
|
|
4015
4078
|
value: "row-reverse",
|
|
4016
|
-
label:
|
|
4079
|
+
label: __26("Reversed row", "elementor"),
|
|
4017
4080
|
renderContent: ({ size }) => {
|
|
4018
4081
|
const EndIcon6 = withDirection6(ArrowLeftIcon);
|
|
4019
4082
|
return /* @__PURE__ */ React49.createElement(EndIcon6, { fontSize: size });
|
|
@@ -4022,7 +4085,7 @@ var options3 = [
|
|
|
4022
4085
|
},
|
|
4023
4086
|
{
|
|
4024
4087
|
value: "column-reverse",
|
|
4025
|
-
label:
|
|
4088
|
+
label: __26("Reversed column", "elementor"),
|
|
4026
4089
|
renderContent: ({ size }) => /* @__PURE__ */ React49.createElement(ArrowUpSmallIcon, { fontSize: size }),
|
|
4027
4090
|
showTooltip: true
|
|
4028
4091
|
}
|
|
@@ -4041,8 +4104,8 @@ import {
|
|
|
4041
4104
|
} from "@elementor/editor-controls";
|
|
4042
4105
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon2, ArrowUpSmallIcon as ArrowUpSmallIcon2, PencilIcon } from "@elementor/icons";
|
|
4043
4106
|
import { Grid as Grid2 } from "@elementor/ui";
|
|
4044
|
-
import { __ as
|
|
4045
|
-
var ORDER_LABEL =
|
|
4107
|
+
import { __ as __27 } from "@wordpress/i18n";
|
|
4108
|
+
var ORDER_LABEL = __27("Order", "elementor");
|
|
4046
4109
|
var FIRST_DEFAULT_VALUE = -99999;
|
|
4047
4110
|
var LAST_DEFAULT_VALUE = 99999;
|
|
4048
4111
|
var FIRST = "first";
|
|
@@ -4055,19 +4118,19 @@ var orderValueMap = {
|
|
|
4055
4118
|
var items = [
|
|
4056
4119
|
{
|
|
4057
4120
|
value: FIRST,
|
|
4058
|
-
label:
|
|
4121
|
+
label: __27("First", "elementor"),
|
|
4059
4122
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ArrowUpSmallIcon2, { fontSize: size }),
|
|
4060
4123
|
showTooltip: true
|
|
4061
4124
|
},
|
|
4062
4125
|
{
|
|
4063
4126
|
value: LAST,
|
|
4064
|
-
label:
|
|
4127
|
+
label: __27("Last", "elementor"),
|
|
4065
4128
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(ArrowDownSmallIcon2, { fontSize: size }),
|
|
4066
4129
|
showTooltip: true
|
|
4067
4130
|
},
|
|
4068
4131
|
{
|
|
4069
4132
|
value: CUSTOM,
|
|
4070
|
-
label:
|
|
4133
|
+
label: __27("Custom", "elementor"),
|
|
4071
4134
|
renderContent: ({ size }) => /* @__PURE__ */ React50.createElement(PencilIcon, { fontSize: size }),
|
|
4072
4135
|
showTooltip: true
|
|
4073
4136
|
}
|
|
@@ -4128,7 +4191,7 @@ function FlexOrderFieldContent() {
|
|
|
4128
4191
|
placeholder: groupPlaceholder,
|
|
4129
4192
|
disabled: !canEdit
|
|
4130
4193
|
}
|
|
4131
|
-
)), isCustomVisible && /* @__PURE__ */ React50.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null,
|
|
4194
|
+
)), isCustomVisible && /* @__PURE__ */ React50.createElement(Grid2, { container: true, gap: 2, alignItems: "center", flexWrap: "nowrap" }, /* @__PURE__ */ React50.createElement(Grid2, { item: true, xs: 6 }, /* @__PURE__ */ React50.createElement(ControlLabel, null, __27("Custom order", "elementor"))), /* @__PURE__ */ React50.createElement(Grid2, { item: true, xs: 6, sx: { display: "flex", justifyContent: "end" } }, /* @__PURE__ */ React50.createElement(
|
|
4132
4195
|
NumberControl2,
|
|
4133
4196
|
{
|
|
4134
4197
|
min: FIRST_DEFAULT_VALUE + 1,
|
|
@@ -4164,25 +4227,25 @@ import {
|
|
|
4164
4227
|
} from "@elementor/editor-controls";
|
|
4165
4228
|
import { flexPropTypeUtil, numberPropTypeUtil as numberPropTypeUtil2, sizePropTypeUtil as sizePropTypeUtil3 } from "@elementor/editor-props";
|
|
4166
4229
|
import { ExpandIcon, PencilIcon as PencilIcon2, ShrinkIcon } from "@elementor/icons";
|
|
4167
|
-
import { __ as
|
|
4168
|
-
var FLEX_SIZE_LABEL =
|
|
4230
|
+
import { __ as __28 } from "@wordpress/i18n";
|
|
4231
|
+
var FLEX_SIZE_LABEL = __28("Flex Size", "elementor");
|
|
4169
4232
|
var DEFAULT = 1;
|
|
4170
4233
|
var items2 = [
|
|
4171
4234
|
{
|
|
4172
4235
|
value: "flex-grow",
|
|
4173
|
-
label:
|
|
4236
|
+
label: __28("Grow", "elementor"),
|
|
4174
4237
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ExpandIcon, { fontSize: size }),
|
|
4175
4238
|
showTooltip: true
|
|
4176
4239
|
},
|
|
4177
4240
|
{
|
|
4178
4241
|
value: "flex-shrink",
|
|
4179
|
-
label:
|
|
4242
|
+
label: __28("Shrink", "elementor"),
|
|
4180
4243
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(ShrinkIcon, { fontSize: size }),
|
|
4181
4244
|
showTooltip: true
|
|
4182
4245
|
},
|
|
4183
4246
|
{
|
|
4184
4247
|
value: "custom",
|
|
4185
|
-
label:
|
|
4248
|
+
label: __28("Custom", "elementor"),
|
|
4186
4249
|
renderContent: ({ size }) => /* @__PURE__ */ React51.createElement(PencilIcon2, { fontSize: size }),
|
|
4187
4250
|
showTooltip: true
|
|
4188
4251
|
}
|
|
@@ -4269,7 +4332,7 @@ var createFlexValueForGroup = (group, flexValue) => {
|
|
|
4269
4332
|
var FlexCustomField = () => {
|
|
4270
4333
|
const flexBasisRowRef = useRef7(null);
|
|
4271
4334
|
const context = useBoundProp3(flexPropTypeUtil);
|
|
4272
|
-
return /* @__PURE__ */ React51.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label:
|
|
4335
|
+
return /* @__PURE__ */ React51.createElement(PropProvider3, { ...context }, /* @__PURE__ */ React51.createElement(React51.Fragment, null, /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __28("Grow", "elementor") }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexGrow" }, /* @__PURE__ */ React51.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __28("Shrink", "elementor") }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexShrink" }, /* @__PURE__ */ React51.createElement(NumberControl3, { min: 0, shouldForceInt: true }))), /* @__PURE__ */ React51.createElement(StylesFieldLayout, { label: __28("Basis", "elementor"), ref: flexBasisRowRef }, /* @__PURE__ */ React51.createElement(PropKeyProvider3, { bind: "flexBasis" }, /* @__PURE__ */ React51.createElement(SizeControl3, { extendedOptions: ["auto"], anchorRef: flexBasisRowRef })))));
|
|
4273
4336
|
};
|
|
4274
4337
|
var getActiveGroup = ({
|
|
4275
4338
|
grow,
|
|
@@ -4295,8 +4358,8 @@ var getActiveGroup = ({
|
|
|
4295
4358
|
// src/components/style-sections/layout-section/gap-control-field.tsx
|
|
4296
4359
|
import * as React52 from "react";
|
|
4297
4360
|
import { GapControl } from "@elementor/editor-controls";
|
|
4298
|
-
import { __ as
|
|
4299
|
-
var GAPS_LABEL =
|
|
4361
|
+
import { __ as __29 } from "@wordpress/i18n";
|
|
4362
|
+
var GAPS_LABEL = __29("Gaps", "elementor");
|
|
4300
4363
|
var GapControlField = () => {
|
|
4301
4364
|
return /* @__PURE__ */ React52.createElement(StylesField, { bind: "gap", propDisplayName: GAPS_LABEL }, /* @__PURE__ */ React52.createElement(GapControl, { label: GAPS_LABEL }));
|
|
4302
4365
|
};
|
|
@@ -4306,20 +4369,20 @@ import * as React53 from "react";
|
|
|
4306
4369
|
import { ControlToggleButtonGroup as ControlToggleButtonGroup3, useBoundProp as useBoundProp4 } from "@elementor/editor-controls";
|
|
4307
4370
|
import { ArrowDownSmallIcon as ArrowDownSmallIcon3, ArrowRightIcon as ArrowRightIcon2, LayoutDashboardIcon } from "@elementor/icons";
|
|
4308
4371
|
import { Grid as Grid3, ToggleButton, Tooltip as Tooltip3, withDirection as withDirection7 } from "@elementor/ui";
|
|
4309
|
-
import { __ as
|
|
4310
|
-
var AUTO_FLOW_LABEL =
|
|
4311
|
-
var DENSE_LABEL =
|
|
4372
|
+
import { __ as __30 } from "@wordpress/i18n";
|
|
4373
|
+
var AUTO_FLOW_LABEL = __30("Auto flow", "elementor");
|
|
4374
|
+
var DENSE_LABEL = __30("Dense", "elementor");
|
|
4312
4375
|
var StartIcon4 = withDirection7(ArrowRightIcon2);
|
|
4313
4376
|
var directionOptions = [
|
|
4314
4377
|
{
|
|
4315
4378
|
value: "row",
|
|
4316
|
-
label:
|
|
4379
|
+
label: __30("Row", "elementor"),
|
|
4317
4380
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(StartIcon4, { fontSize: size }),
|
|
4318
4381
|
showTooltip: true
|
|
4319
4382
|
},
|
|
4320
4383
|
{
|
|
4321
4384
|
value: "column",
|
|
4322
|
-
label:
|
|
4385
|
+
label: __30("Column", "elementor"),
|
|
4323
4386
|
renderContent: ({ size }) => /* @__PURE__ */ React53.createElement(ArrowDownSmallIcon3, { fontSize: size }),
|
|
4324
4387
|
showTooltip: true
|
|
4325
4388
|
}
|
|
@@ -4384,15 +4447,15 @@ import * as React54 from "react";
|
|
|
4384
4447
|
import { useRef as useRef8 } from "react";
|
|
4385
4448
|
import { SizeControl as SizeControl4 } from "@elementor/editor-controls";
|
|
4386
4449
|
import { Stack as Stack9 } from "@elementor/ui";
|
|
4387
|
-
import { __ as
|
|
4450
|
+
import { __ as __31 } from "@wordpress/i18n";
|
|
4388
4451
|
var DEFAULT_UNIT = "fr";
|
|
4389
|
-
var AUTO_ROWS_LABEL =
|
|
4390
|
-
var AUTO_COLUMNS_LABEL =
|
|
4391
|
-
var AUTO_ROWS_TOOLTIP =
|
|
4452
|
+
var AUTO_ROWS_LABEL = __31("Auto rows", "elementor");
|
|
4453
|
+
var AUTO_COLUMNS_LABEL = __31("Auto columns", "elementor");
|
|
4454
|
+
var AUTO_ROWS_TOOLTIP = __31(
|
|
4392
4455
|
"Set the size for new rows created automatically when content exceeds the defined grid.",
|
|
4393
4456
|
"elementor"
|
|
4394
4457
|
);
|
|
4395
|
-
var AUTO_COLUMNS_TOOLTIP =
|
|
4458
|
+
var AUTO_COLUMNS_TOOLTIP = __31(
|
|
4396
4459
|
"Set the size for new columns created automatically when content exceeds the defined grid.",
|
|
4397
4460
|
"elementor"
|
|
4398
4461
|
);
|
|
@@ -4435,32 +4498,32 @@ import {
|
|
|
4435
4498
|
LayoutDistributeVerticalIcon as StretchIcon
|
|
4436
4499
|
} from "@elementor/icons";
|
|
4437
4500
|
import { withDirection as withDirection8 } from "@elementor/ui";
|
|
4438
|
-
import { __ as
|
|
4439
|
-
var JUSTIFY_ITEMS_LABEL =
|
|
4501
|
+
import { __ as __32 } from "@wordpress/i18n";
|
|
4502
|
+
var JUSTIFY_ITEMS_LABEL = __32("Justify items", "elementor");
|
|
4440
4503
|
var StartIcon5 = withDirection8(LayoutAlignLeftIcon3);
|
|
4441
4504
|
var EndIcon4 = withDirection8(LayoutAlignRightIcon3);
|
|
4442
4505
|
var options4 = [
|
|
4443
4506
|
{
|
|
4444
4507
|
value: "start",
|
|
4445
|
-
label:
|
|
4508
|
+
label: __32("Start", "elementor"),
|
|
4446
4509
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StartIcon5, { fontSize: size }),
|
|
4447
4510
|
showTooltip: true
|
|
4448
4511
|
},
|
|
4449
4512
|
{
|
|
4450
4513
|
value: "center",
|
|
4451
|
-
label:
|
|
4514
|
+
label: __32("Center", "elementor"),
|
|
4452
4515
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(CenterIcon4, { fontSize: size }),
|
|
4453
4516
|
showTooltip: true
|
|
4454
4517
|
},
|
|
4455
4518
|
{
|
|
4456
4519
|
value: "end",
|
|
4457
|
-
label:
|
|
4520
|
+
label: __32("End", "elementor"),
|
|
4458
4521
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(EndIcon4, { fontSize: size }),
|
|
4459
4522
|
showTooltip: true
|
|
4460
4523
|
},
|
|
4461
4524
|
{
|
|
4462
4525
|
value: "stretch",
|
|
4463
|
-
label:
|
|
4526
|
+
label: __32("Stretch", "elementor"),
|
|
4464
4527
|
renderContent: ({ size }) => /* @__PURE__ */ React55.createElement(StretchIcon, { fontSize: size }),
|
|
4465
4528
|
showTooltip: true
|
|
4466
4529
|
}
|
|
@@ -4471,8 +4534,8 @@ var GridJustifyItemsField = () => /* @__PURE__ */ React55.createElement(StylesFi
|
|
|
4471
4534
|
import * as React56 from "react";
|
|
4472
4535
|
import { updateElementEditorSettings, useElementEditorSettings } from "@elementor/editor-elements";
|
|
4473
4536
|
import { Box as Box5, Switch } from "@elementor/ui";
|
|
4474
|
-
import { __ as
|
|
4475
|
-
var GRID_OUTLINE_LABEL =
|
|
4537
|
+
import { __ as __33 } from "@wordpress/i18n";
|
|
4538
|
+
var GRID_OUTLINE_LABEL = __33("Show Grid Outline", "elementor");
|
|
4476
4539
|
var GridOutlineField = () => {
|
|
4477
4540
|
const { element } = useElement();
|
|
4478
4541
|
const settings = useElementEditorSettings(element.id);
|
|
@@ -4498,7 +4561,7 @@ import * as React57 from "react";
|
|
|
4498
4561
|
import { useRef as useRef9 } from "react";
|
|
4499
4562
|
import { ControlActions, createControl, SizeComponent, useBoundProp as useBoundProp5 } from "@elementor/editor-controls";
|
|
4500
4563
|
import { Grid as Grid4 } from "@elementor/ui";
|
|
4501
|
-
import { __ as
|
|
4564
|
+
import { __ as __34 } from "@wordpress/i18n";
|
|
4502
4565
|
|
|
4503
4566
|
// src/components/style-sections/layout-section/utils/grid-track-value.ts
|
|
4504
4567
|
import {
|
|
@@ -4639,18 +4702,18 @@ var GridTrackFieldContent = ({ cssProp, label }) => {
|
|
|
4639
4702
|
)));
|
|
4640
4703
|
};
|
|
4641
4704
|
var GridTrackField = ({ cssProp, label }) => /* @__PURE__ */ React57.createElement(UiProviders, null, /* @__PURE__ */ React57.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React57.createElement(GridTrackFieldContent, { cssProp, label })));
|
|
4642
|
-
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label:
|
|
4705
|
+
var GridSizeFields = () => /* @__PURE__ */ React57.createElement(Grid4, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React57.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-columns", label: __34("Columns", "elementor") })), /* @__PURE__ */ React57.createElement(Grid4, { item: true, xs: 6 }, /* @__PURE__ */ React57.createElement(GridTrackField, { cssProp: "grid-template-rows", label: __34("Rows", "elementor") })));
|
|
4643
4706
|
|
|
4644
4707
|
// src/components/style-sections/layout-section/grid-span-field.tsx
|
|
4645
4708
|
import * as React58 from "react";
|
|
4646
4709
|
import { GridSpanControl } from "@elementor/editor-controls";
|
|
4647
4710
|
import { Grid as Grid5 } from "@elementor/ui";
|
|
4648
|
-
import { __ as
|
|
4711
|
+
import { __ as __35 } from "@wordpress/i18n";
|
|
4649
4712
|
var GridSpanFieldContent = ({ label }) => {
|
|
4650
4713
|
return /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label, direction: "column" }, /* @__PURE__ */ React58.createElement(GridSpanControl, null));
|
|
4651
4714
|
};
|
|
4652
4715
|
var GridSpanField = ({ cssProp, label }) => /* @__PURE__ */ React58.createElement(StylesField, { bind: cssProp, propDisplayName: label }, /* @__PURE__ */ React58.createElement(UiProviders, null, /* @__PURE__ */ React58.createElement(GridSpanFieldContent, { cssProp, label })));
|
|
4653
|
-
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label:
|
|
4716
|
+
var GridSpanFields = () => /* @__PURE__ */ React58.createElement(Grid5, { container: true, gap: 2, flexWrap: "nowrap" }, /* @__PURE__ */ React58.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-column", label: __35("Grid column", "elementor") })), /* @__PURE__ */ React58.createElement(Grid5, { item: true, xs: 6 }, /* @__PURE__ */ React58.createElement(GridSpanField, { cssProp: "grid-row", label: __35("Grid row", "elementor") })));
|
|
4654
4717
|
|
|
4655
4718
|
// src/components/style-sections/layout-section/justify-content-field.tsx
|
|
4656
4719
|
import * as React59 from "react";
|
|
@@ -4664,8 +4727,8 @@ import {
|
|
|
4664
4727
|
JustifyTopIcon as JustifyTopIcon3
|
|
4665
4728
|
} from "@elementor/icons";
|
|
4666
4729
|
import { withDirection as withDirection9 } from "@elementor/ui";
|
|
4667
|
-
import { __ as
|
|
4668
|
-
var JUSTIFY_CONTENT_LABEL =
|
|
4730
|
+
import { __ as __36 } from "@wordpress/i18n";
|
|
4731
|
+
var JUSTIFY_CONTENT_LABEL = __36("Justify content", "elementor");
|
|
4669
4732
|
var StartIcon6 = withDirection9(JustifyTopIcon3);
|
|
4670
4733
|
var EndIcon5 = withDirection9(JustifyBottomIcon3);
|
|
4671
4734
|
var iconProps4 = {
|
|
@@ -4675,37 +4738,37 @@ var iconProps4 = {
|
|
|
4675
4738
|
var options5 = [
|
|
4676
4739
|
{
|
|
4677
4740
|
value: "flex-start",
|
|
4678
|
-
label:
|
|
4741
|
+
label: __36("Start", "elementor"),
|
|
4679
4742
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: StartIcon6, size, ...iconProps4 }),
|
|
4680
4743
|
showTooltip: true
|
|
4681
4744
|
},
|
|
4682
4745
|
{
|
|
4683
4746
|
value: "center",
|
|
4684
|
-
label:
|
|
4747
|
+
label: __36("Center", "elementor"),
|
|
4685
4748
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: CenterIcon5, size, ...iconProps4 }),
|
|
4686
4749
|
showTooltip: true
|
|
4687
4750
|
},
|
|
4688
4751
|
{
|
|
4689
4752
|
value: "flex-end",
|
|
4690
|
-
label:
|
|
4753
|
+
label: __36("End", "elementor"),
|
|
4691
4754
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EndIcon5, size, ...iconProps4 }),
|
|
4692
4755
|
showTooltip: true
|
|
4693
4756
|
},
|
|
4694
4757
|
{
|
|
4695
4758
|
value: "space-between",
|
|
4696
|
-
label:
|
|
4759
|
+
label: __36("Space between", "elementor"),
|
|
4697
4760
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: BetweenIcon2, size, ...iconProps4 }),
|
|
4698
4761
|
showTooltip: true
|
|
4699
4762
|
},
|
|
4700
4763
|
{
|
|
4701
4764
|
value: "space-around",
|
|
4702
|
-
label:
|
|
4765
|
+
label: __36("Space around", "elementor"),
|
|
4703
4766
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: AroundIcon2, size, ...iconProps4 }),
|
|
4704
4767
|
showTooltip: true
|
|
4705
4768
|
},
|
|
4706
4769
|
{
|
|
4707
4770
|
value: "space-evenly",
|
|
4708
|
-
label:
|
|
4771
|
+
label: __36("Space evenly", "elementor"),
|
|
4709
4772
|
renderContent: ({ size }) => /* @__PURE__ */ React59.createElement(RotatedIcon, { icon: EvenlyIcon2, size, ...iconProps4 }),
|
|
4710
4773
|
showTooltip: true
|
|
4711
4774
|
}
|
|
@@ -4716,24 +4779,24 @@ var JustifyContentField = () => /* @__PURE__ */ React59.createElement(StylesFiel
|
|
|
4716
4779
|
import * as React60 from "react";
|
|
4717
4780
|
import { ToggleControl as ToggleControl10 } from "@elementor/editor-controls";
|
|
4718
4781
|
import { ArrowBackIcon, ArrowForwardIcon, ArrowRightIcon as ArrowRightIcon3 } from "@elementor/icons";
|
|
4719
|
-
import { __ as
|
|
4720
|
-
var FLEX_WRAP_LABEL =
|
|
4782
|
+
import { __ as __37 } from "@wordpress/i18n";
|
|
4783
|
+
var FLEX_WRAP_LABEL = __37("Wrap", "elementor");
|
|
4721
4784
|
var options6 = [
|
|
4722
4785
|
{
|
|
4723
4786
|
value: "nowrap",
|
|
4724
|
-
label:
|
|
4787
|
+
label: __37("No wrap", "elementor"),
|
|
4725
4788
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowRightIcon3, { fontSize: size }),
|
|
4726
4789
|
showTooltip: true
|
|
4727
4790
|
},
|
|
4728
4791
|
{
|
|
4729
4792
|
value: "wrap",
|
|
4730
|
-
label:
|
|
4793
|
+
label: __37("Wrap", "elementor"),
|
|
4731
4794
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowBackIcon, { fontSize: size }),
|
|
4732
4795
|
showTooltip: true
|
|
4733
4796
|
},
|
|
4734
4797
|
{
|
|
4735
4798
|
value: "wrap-reverse",
|
|
4736
|
-
label:
|
|
4799
|
+
label: __37("Reversed wrap", "elementor"),
|
|
4737
4800
|
renderContent: ({ size }) => /* @__PURE__ */ React60.createElement(ArrowForwardIcon, { fontSize: size }),
|
|
4738
4801
|
showTooltip: true
|
|
4739
4802
|
}
|
|
@@ -4743,8 +4806,8 @@ var WrapField = () => {
|
|
|
4743
4806
|
};
|
|
4744
4807
|
|
|
4745
4808
|
// src/components/style-sections/layout-section/layout-section.tsx
|
|
4746
|
-
var DISPLAY_LABEL2 =
|
|
4747
|
-
var FLEX_WRAP_LABEL2 =
|
|
4809
|
+
var DISPLAY_LABEL2 = __38("Display", "elementor");
|
|
4810
|
+
var FLEX_WRAP_LABEL2 = __38("Flex wrap", "elementor");
|
|
4748
4811
|
var DEFAULT_PARENT_FLOW_DIRECTION = "row";
|
|
4749
4812
|
var { Slot: GridFieldsSlot, inject: injectIntoGridFields } = createLocation3();
|
|
4750
4813
|
var LayoutSection = () => {
|
|
@@ -4775,8 +4838,8 @@ var FlexFields = () => {
|
|
|
4775
4838
|
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));
|
|
4776
4839
|
};
|
|
4777
4840
|
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));
|
|
4778
|
-
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null,
|
|
4779
|
-
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null,
|
|
4841
|
+
var FlexChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null, __38("Flex child", "elementor")), /* @__PURE__ */ React61.createElement(AlignSelfChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null), /* @__PURE__ */ React61.createElement(FlexSizeField, null));
|
|
4842
|
+
var GridChildFields = ({ parentStyleDirection }) => /* @__PURE__ */ React61.createElement(React61.Fragment, null, /* @__PURE__ */ React61.createElement(PanelDivider, null), /* @__PURE__ */ React61.createElement(ControlFormLabel2, null, __38("Grid child", "elementor")), /* @__PURE__ */ React61.createElement(GridSpanFields, null), /* @__PURE__ */ React61.createElement(AlignSelfGridChild, { parentStyleDirection }), /* @__PURE__ */ React61.createElement(FlexOrderField, null));
|
|
4780
4843
|
var shouldDisplayFlexFields = (display, local) => {
|
|
4781
4844
|
const value = display?.value ?? local?.value;
|
|
4782
4845
|
if (!value) {
|
|
@@ -4790,7 +4853,7 @@ import * as React66 from "react";
|
|
|
4790
4853
|
import { useEffect as useEffect7, useRef as useRef12 } from "react";
|
|
4791
4854
|
import { useSessionStorage as useSessionStorage4 } from "@elementor/session";
|
|
4792
4855
|
import { styled as styled6 } from "@elementor/ui";
|
|
4793
|
-
import { __ as
|
|
4856
|
+
import { __ as __43 } from "@wordpress/i18n";
|
|
4794
4857
|
|
|
4795
4858
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
4796
4859
|
import * as React62 from "react";
|
|
@@ -4798,7 +4861,7 @@ import { useRef as useRef10 } from "react";
|
|
|
4798
4861
|
import { SizeControl as SizeControl5 } from "@elementor/editor-controls";
|
|
4799
4862
|
import { SideBottomIcon as SideBottomIcon2, SideLeftIcon as SideLeftIcon2, SideRightIcon as SideRightIcon2, SideTopIcon as SideTopIcon2 } from "@elementor/icons";
|
|
4800
4863
|
import { Grid as Grid6, Stack as Stack10, withDirection as withDirection10 } from "@elementor/ui";
|
|
4801
|
-
import { __ as
|
|
4864
|
+
import { __ as __39 } from "@wordpress/i18n";
|
|
4802
4865
|
var InlineStartIcon2 = withDirection10(SideLeftIcon2);
|
|
4803
4866
|
var InlineEndIcon2 = withDirection10(SideRightIcon2);
|
|
4804
4867
|
var sideIcons = {
|
|
@@ -4807,19 +4870,19 @@ var sideIcons = {
|
|
|
4807
4870
|
"inset-inline-start": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineStartIcon2, size: "tiny" }),
|
|
4808
4871
|
"inset-inline-end": /* @__PURE__ */ React62.createElement(RotatedIcon, { icon: InlineEndIcon2, size: "tiny" })
|
|
4809
4872
|
};
|
|
4810
|
-
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ?
|
|
4811
|
-
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ?
|
|
4873
|
+
var getInlineStartLabel = (isSiteRtl) => isSiteRtl ? __39("Right", "elementor") : __39("Left", "elementor");
|
|
4874
|
+
var getInlineEndLabel = (isSiteRtl) => isSiteRtl ? __39("Left", "elementor") : __39("Right", "elementor");
|
|
4812
4875
|
var DimensionsField = () => {
|
|
4813
4876
|
const { isSiteRtl } = useDirection();
|
|
4814
4877
|
const rowRefs = [useRef10(null), useRef10(null)];
|
|
4815
|
-
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label:
|
|
4878
|
+
return /* @__PURE__ */ React62.createElement(UiProviders, null, /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[0] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-start", label: __39("Top", "elementor"), rowRef: rowRefs[0] }), /* @__PURE__ */ React62.createElement(
|
|
4816
4879
|
DimensionField,
|
|
4817
4880
|
{
|
|
4818
4881
|
side: "inset-inline-end",
|
|
4819
4882
|
label: getInlineEndLabel(isSiteRtl),
|
|
4820
4883
|
rowRef: rowRefs[0]
|
|
4821
4884
|
}
|
|
4822
|
-
)), /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label:
|
|
4885
|
+
)), /* @__PURE__ */ React62.createElement(Stack10, { direction: "row", gap: 2, flexWrap: "nowrap", ref: rowRefs[1] }, /* @__PURE__ */ React62.createElement(DimensionField, { side: "inset-block-end", label: __39("Bottom", "elementor"), rowRef: rowRefs[1] }), /* @__PURE__ */ React62.createElement(
|
|
4823
4886
|
DimensionField,
|
|
4824
4887
|
{
|
|
4825
4888
|
side: "inset-inline-start",
|
|
@@ -4846,8 +4909,8 @@ var DimensionField = ({
|
|
|
4846
4909
|
import * as React63 from "react";
|
|
4847
4910
|
import { useRef as useRef11 } from "react";
|
|
4848
4911
|
import { SizeControl as SizeControl6 } from "@elementor/editor-controls";
|
|
4849
|
-
import { __ as
|
|
4850
|
-
var OFFSET_LABEL =
|
|
4912
|
+
import { __ as __40 } from "@wordpress/i18n";
|
|
4913
|
+
var OFFSET_LABEL = __40("Anchor offset", "elementor");
|
|
4851
4914
|
var UNITS2 = ["px", "em", "rem", "vw", "vh"];
|
|
4852
4915
|
var OffsetField = () => {
|
|
4853
4916
|
const rowRef = useRef11(null);
|
|
@@ -4857,14 +4920,14 @@ var OffsetField = () => {
|
|
|
4857
4920
|
// src/components/style-sections/position-section/position-field.tsx
|
|
4858
4921
|
import * as React64 from "react";
|
|
4859
4922
|
import { SelectControl as SelectControl3 } from "@elementor/editor-controls";
|
|
4860
|
-
import { __ as
|
|
4861
|
-
var POSITION_LABEL =
|
|
4923
|
+
import { __ as __41 } from "@wordpress/i18n";
|
|
4924
|
+
var POSITION_LABEL = __41("Position", "elementor");
|
|
4862
4925
|
var positionOptions = [
|
|
4863
|
-
{ label:
|
|
4864
|
-
{ label:
|
|
4865
|
-
{ label:
|
|
4866
|
-
{ label:
|
|
4867
|
-
{ label:
|
|
4926
|
+
{ label: __41("Static", "elementor"), value: "static" },
|
|
4927
|
+
{ label: __41("Relative", "elementor"), value: "relative" },
|
|
4928
|
+
{ label: __41("Absolute", "elementor"), value: "absolute" },
|
|
4929
|
+
{ label: __41("Fixed", "elementor"), value: "fixed" },
|
|
4930
|
+
{ label: __41("Sticky", "elementor"), value: "sticky" }
|
|
4868
4931
|
];
|
|
4869
4932
|
var PositionField = () => {
|
|
4870
4933
|
return /* @__PURE__ */ React64.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React64.createElement(SelectControl3, { options: positionOptions })));
|
|
@@ -4875,11 +4938,11 @@ import * as React65 from "react";
|
|
|
4875
4938
|
import { NumberControl as NumberControl4 } from "@elementor/editor-controls";
|
|
4876
4939
|
import { InfoCircleFilledIcon } from "@elementor/icons";
|
|
4877
4940
|
import { Alert as Alert3, AlertTitle as AlertTitle2, Box as Box6, Infotip } from "@elementor/ui";
|
|
4878
|
-
import { __ as
|
|
4879
|
-
var Z_INDEX_LABEL =
|
|
4941
|
+
import { __ as __42 } from "@wordpress/i18n";
|
|
4942
|
+
var Z_INDEX_LABEL = __42("Z-index", "elementor");
|
|
4880
4943
|
var ZIndexField = ({ disabled }) => {
|
|
4881
4944
|
const StyleField = /* @__PURE__ */ React65.createElement(StylesField, { bind: "z-index", propDisplayName: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(StylesFieldLayout, { label: Z_INDEX_LABEL }, /* @__PURE__ */ React65.createElement(NumberControl4, { disabled })));
|
|
4882
|
-
const content = /* @__PURE__ */ React65.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(AlertTitle2, null,
|
|
4945
|
+
const content = /* @__PURE__ */ React65.createElement(Alert3, { color: "secondary", icon: /* @__PURE__ */ React65.createElement(InfoCircleFilledIcon, null), size: "small" }, /* @__PURE__ */ React65.createElement(AlertTitle2, null, __42("Z-index", "elementor")), /* @__PURE__ */ React65.createElement(Box6, { component: "span" }, __42(
|
|
4883
4946
|
"z-index only works on positioned elements. Change position to relative, absolute, or fixed to enable layering.",
|
|
4884
4947
|
"elementor"
|
|
4885
4948
|
)));
|
|
@@ -4897,8 +4960,8 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4897
4960
|
|
|
4898
4961
|
// src/components/style-sections/position-section/position-section.tsx
|
|
4899
4962
|
var POSITION_STATIC = "static";
|
|
4900
|
-
var POSITION_LABEL2 =
|
|
4901
|
-
var DIMENSIONS_LABEL =
|
|
4963
|
+
var POSITION_LABEL2 = __43("Position", "elementor");
|
|
4964
|
+
var DIMENSIONS_LABEL = __43("Dimensions", "elementor");
|
|
4902
4965
|
var DEPENDENT_PROP_NAMES = [
|
|
4903
4966
|
"inset-block-start",
|
|
4904
4967
|
"inset-block-end",
|
|
@@ -4981,19 +5044,19 @@ import * as React69 from "react";
|
|
|
4981
5044
|
import { useRef as useRef13 } from "react";
|
|
4982
5045
|
import { AspectRatioControl, PositionControl, SizeControl as SizeControl7 } from "@elementor/editor-controls";
|
|
4983
5046
|
import { Grid as Grid7, Stack as Stack11 } from "@elementor/ui";
|
|
4984
|
-
import { __ as
|
|
5047
|
+
import { __ as __46 } from "@wordpress/i18n";
|
|
4985
5048
|
|
|
4986
5049
|
// src/components/style-sections/size-section/object-fit-field.tsx
|
|
4987
5050
|
import * as React67 from "react";
|
|
4988
5051
|
import { SelectControl as SelectControl4 } from "@elementor/editor-controls";
|
|
4989
|
-
import { __ as
|
|
4990
|
-
var OBJECT_FIT_LABEL =
|
|
5052
|
+
import { __ as __44 } from "@wordpress/i18n";
|
|
5053
|
+
var OBJECT_FIT_LABEL = __44("Object fit", "elementor");
|
|
4991
5054
|
var positionOptions2 = [
|
|
4992
|
-
{ label:
|
|
4993
|
-
{ label:
|
|
4994
|
-
{ label:
|
|
4995
|
-
{ label:
|
|
4996
|
-
{ label:
|
|
5055
|
+
{ label: __44("Fill", "elementor"), value: "fill" },
|
|
5056
|
+
{ label: __44("Cover", "elementor"), value: "cover" },
|
|
5057
|
+
{ label: __44("Contain", "elementor"), value: "contain" },
|
|
5058
|
+
{ label: __44("None", "elementor"), value: "none" },
|
|
5059
|
+
{ label: __44("Scale down", "elementor"), value: "scale-down" }
|
|
4997
5060
|
];
|
|
4998
5061
|
var ObjectFitField = () => {
|
|
4999
5062
|
return /* @__PURE__ */ React67.createElement(StylesField, { bind: "object-fit", propDisplayName: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(StylesFieldLayout, { label: OBJECT_FIT_LABEL }, /* @__PURE__ */ React67.createElement(SelectControl4, { options: positionOptions2 })));
|
|
@@ -5003,24 +5066,24 @@ var ObjectFitField = () => {
|
|
|
5003
5066
|
import * as React68 from "react";
|
|
5004
5067
|
import { ToggleControl as ToggleControl11 } from "@elementor/editor-controls";
|
|
5005
5068
|
import { EyeIcon, EyeOffIcon, LetterAIcon } from "@elementor/icons";
|
|
5006
|
-
import { __ as
|
|
5007
|
-
var OVERFLOW_LABEL =
|
|
5069
|
+
import { __ as __45 } from "@wordpress/i18n";
|
|
5070
|
+
var OVERFLOW_LABEL = __45("Overflow", "elementor");
|
|
5008
5071
|
var options7 = [
|
|
5009
5072
|
{
|
|
5010
5073
|
value: "visible",
|
|
5011
|
-
label:
|
|
5074
|
+
label: __45("Visible", "elementor"),
|
|
5012
5075
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(EyeIcon, { fontSize: size }),
|
|
5013
5076
|
showTooltip: true
|
|
5014
5077
|
},
|
|
5015
5078
|
{
|
|
5016
5079
|
value: "hidden",
|
|
5017
|
-
label:
|
|
5080
|
+
label: __45("Hidden", "elementor"),
|
|
5018
5081
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(EyeOffIcon, { fontSize: size }),
|
|
5019
5082
|
showTooltip: true
|
|
5020
5083
|
},
|
|
5021
5084
|
{
|
|
5022
5085
|
value: "auto",
|
|
5023
|
-
label:
|
|
5086
|
+
label: __45("Auto", "elementor"),
|
|
5024
5087
|
renderContent: ({ size }) => /* @__PURE__ */ React68.createElement(LetterAIcon, { fontSize: size }),
|
|
5025
5088
|
showTooltip: true
|
|
5026
5089
|
}
|
|
@@ -5034,38 +5097,38 @@ var CssSizeProps = [
|
|
|
5034
5097
|
[
|
|
5035
5098
|
{
|
|
5036
5099
|
bind: "width",
|
|
5037
|
-
label:
|
|
5100
|
+
label: __46("Width", "elementor")
|
|
5038
5101
|
},
|
|
5039
5102
|
{
|
|
5040
5103
|
bind: "height",
|
|
5041
|
-
label:
|
|
5104
|
+
label: __46("Height", "elementor")
|
|
5042
5105
|
}
|
|
5043
5106
|
],
|
|
5044
5107
|
[
|
|
5045
5108
|
{
|
|
5046
5109
|
bind: "min-width",
|
|
5047
|
-
label:
|
|
5110
|
+
label: __46("Min width", "elementor")
|
|
5048
5111
|
},
|
|
5049
5112
|
{
|
|
5050
5113
|
bind: "min-height",
|
|
5051
|
-
label:
|
|
5114
|
+
label: __46("Min height", "elementor")
|
|
5052
5115
|
}
|
|
5053
5116
|
],
|
|
5054
5117
|
[
|
|
5055
5118
|
{
|
|
5056
5119
|
bind: "max-width",
|
|
5057
|
-
label:
|
|
5120
|
+
label: __46("Max width", "elementor")
|
|
5058
5121
|
},
|
|
5059
5122
|
{
|
|
5060
5123
|
bind: "max-height",
|
|
5061
|
-
label:
|
|
5124
|
+
label: __46("Max height", "elementor")
|
|
5062
5125
|
}
|
|
5063
5126
|
]
|
|
5064
5127
|
];
|
|
5065
|
-
var ASPECT_RATIO_LABEL =
|
|
5128
|
+
var ASPECT_RATIO_LABEL = __46("Aspect Ratio", "elementor");
|
|
5066
5129
|
var SizeSection = () => {
|
|
5067
5130
|
const gridRowRefs = [useRef13(null), useRef13(null), useRef13(null)];
|
|
5068
|
-
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(Grid7, { 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(Stack11, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(Stack11, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName:
|
|
5131
|
+
return /* @__PURE__ */ React69.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React69.createElement(Grid7, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React69.createElement(Grid7, { 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(Stack11, null, /* @__PURE__ */ React69.createElement(OverflowField, null)), /* @__PURE__ */ React69.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React69.createElement(Stack11, { gap: 2, pt: 2 }, /* @__PURE__ */ React69.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React69.createElement(AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React69.createElement(PanelDivider, null), /* @__PURE__ */ React69.createElement(ObjectFitField, null), /* @__PURE__ */ React69.createElement(StylesField, { bind: "object-position", propDisplayName: __46("Object position", "elementor") }, /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 6 }, /* @__PURE__ */ React69.createElement(PositionControl, null))))));
|
|
5069
5132
|
};
|
|
5070
5133
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
5071
5134
|
return /* @__PURE__ */ React69.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React69.createElement(Grid7, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(ControlLabel, null, label)), /* @__PURE__ */ React69.createElement(Grid7, { item: true, xs: 12 }, /* @__PURE__ */ React69.createElement(SizeControl7, { extendedOptions, anchorRef: rowRef }))));
|
|
@@ -5074,9 +5137,9 @@ var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
|
5074
5137
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
5075
5138
|
import * as React70 from "react";
|
|
5076
5139
|
import { LinkedDimensionsControl } from "@elementor/editor-controls";
|
|
5077
|
-
import { __ as
|
|
5078
|
-
var MARGIN_LABEL =
|
|
5079
|
-
var PADDING_LABEL =
|
|
5140
|
+
import { __ as __47 } from "@wordpress/i18n";
|
|
5141
|
+
var MARGIN_LABEL = __47("Margin", "elementor");
|
|
5142
|
+
var PADDING_LABEL = __47("Padding", "elementor");
|
|
5080
5143
|
var SpacingSection = () => {
|
|
5081
5144
|
const { isSiteRtl } = useDirection();
|
|
5082
5145
|
return /* @__PURE__ */ React70.createElement(SectionContent, null, /* @__PURE__ */ React70.createElement(StylesField, { bind: "margin", propDisplayName: MARGIN_LABEL }, /* @__PURE__ */ React70.createElement(
|
|
@@ -5095,8 +5158,8 @@ import * as React87 from "react";
|
|
|
5095
5158
|
// src/components/style-sections/typography-section/column-count-field.tsx
|
|
5096
5159
|
import * as React71 from "react";
|
|
5097
5160
|
import { NumberControl as NumberControl5 } from "@elementor/editor-controls";
|
|
5098
|
-
import { __ as
|
|
5099
|
-
var COLUMN_COUNT_LABEL =
|
|
5161
|
+
import { __ as __48 } from "@wordpress/i18n";
|
|
5162
|
+
var COLUMN_COUNT_LABEL = __48("Columns", "elementor");
|
|
5100
5163
|
var ColumnCountField = () => {
|
|
5101
5164
|
return /* @__PURE__ */ React71.createElement(StylesField, { bind: "column-count", propDisplayName: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(StylesFieldLayout, { label: COLUMN_COUNT_LABEL }, /* @__PURE__ */ React71.createElement(NumberControl5, { shouldForceInt: true, min: 0, step: 1 })));
|
|
5102
5165
|
};
|
|
@@ -5105,8 +5168,8 @@ var ColumnCountField = () => {
|
|
|
5105
5168
|
import * as React72 from "react";
|
|
5106
5169
|
import { useRef as useRef14 } from "react";
|
|
5107
5170
|
import { SizeControl as SizeControl8 } from "@elementor/editor-controls";
|
|
5108
|
-
import { __ as
|
|
5109
|
-
var COLUMN_GAP_LABEL =
|
|
5171
|
+
import { __ as __49 } from "@wordpress/i18n";
|
|
5172
|
+
var COLUMN_GAP_LABEL = __49("Column gap", "elementor");
|
|
5110
5173
|
var ColumnGapField = () => {
|
|
5111
5174
|
const rowRef = useRef14(null);
|
|
5112
5175
|
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(SizeControl8, { anchorRef: rowRef })));
|
|
@@ -5116,8 +5179,8 @@ var ColumnGapField = () => {
|
|
|
5116
5179
|
import * as React73 from "react";
|
|
5117
5180
|
import { FontFamilyControl, useFontFamilies } from "@elementor/editor-controls";
|
|
5118
5181
|
import { useSectionWidth } from "@elementor/editor-ui";
|
|
5119
|
-
import { __ as
|
|
5120
|
-
var FONT_FAMILY_LABEL =
|
|
5182
|
+
import { __ as __50 } from "@wordpress/i18n";
|
|
5183
|
+
var FONT_FAMILY_LABEL = __50("Font family", "elementor");
|
|
5121
5184
|
var FontFamilyField = () => {
|
|
5122
5185
|
const fontFamilies = useFontFamilies();
|
|
5123
5186
|
const sectionWidth = useSectionWidth();
|
|
@@ -5138,8 +5201,8 @@ var FontFamilyField = () => {
|
|
|
5138
5201
|
import * as React74 from "react";
|
|
5139
5202
|
import { useRef as useRef15 } from "react";
|
|
5140
5203
|
import { SizeControl as SizeControl9 } from "@elementor/editor-controls";
|
|
5141
|
-
import { __ as
|
|
5142
|
-
var FONT_SIZE_LABEL =
|
|
5204
|
+
import { __ as __51 } from "@wordpress/i18n";
|
|
5205
|
+
var FONT_SIZE_LABEL = __51("Font size", "elementor");
|
|
5143
5206
|
var FontSizeField = () => {
|
|
5144
5207
|
const rowRef = useRef15(null);
|
|
5145
5208
|
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(SizeControl9, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
@@ -5149,18 +5212,18 @@ var FontSizeField = () => {
|
|
|
5149
5212
|
import * as React75 from "react";
|
|
5150
5213
|
import { ToggleControl as ToggleControl12 } from "@elementor/editor-controls";
|
|
5151
5214
|
import { ItalicIcon, MinusIcon } from "@elementor/icons";
|
|
5152
|
-
import { __ as
|
|
5153
|
-
var FONT_STYLE_LABEL =
|
|
5215
|
+
import { __ as __52 } from "@wordpress/i18n";
|
|
5216
|
+
var FONT_STYLE_LABEL = __52("Font style", "elementor");
|
|
5154
5217
|
var options8 = [
|
|
5155
5218
|
{
|
|
5156
5219
|
value: "normal",
|
|
5157
|
-
label:
|
|
5220
|
+
label: __52("Normal", "elementor"),
|
|
5158
5221
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(MinusIcon, { fontSize: size }),
|
|
5159
5222
|
showTooltip: true
|
|
5160
5223
|
},
|
|
5161
5224
|
{
|
|
5162
5225
|
value: "italic",
|
|
5163
|
-
label:
|
|
5226
|
+
label: __52("Italic", "elementor"),
|
|
5164
5227
|
renderContent: ({ size }) => /* @__PURE__ */ React75.createElement(ItalicIcon, { fontSize: size }),
|
|
5165
5228
|
showTooltip: true
|
|
5166
5229
|
}
|
|
@@ -5172,18 +5235,18 @@ var FontStyleField = () => {
|
|
|
5172
5235
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
5173
5236
|
import * as React76 from "react";
|
|
5174
5237
|
import { SelectControl as SelectControl5 } from "@elementor/editor-controls";
|
|
5175
|
-
import { __ as
|
|
5176
|
-
var FONT_WEIGHT_LABEL =
|
|
5238
|
+
import { __ as __53 } from "@wordpress/i18n";
|
|
5239
|
+
var FONT_WEIGHT_LABEL = __53("Font weight", "elementor");
|
|
5177
5240
|
var fontWeightOptions = [
|
|
5178
|
-
{ value: "100", label:
|
|
5179
|
-
{ value: "200", label:
|
|
5180
|
-
{ value: "300", label:
|
|
5181
|
-
{ value: "400", label:
|
|
5182
|
-
{ value: "500", label:
|
|
5183
|
-
{ value: "600", label:
|
|
5184
|
-
{ value: "700", label:
|
|
5185
|
-
{ value: "800", label:
|
|
5186
|
-
{ value: "900", label:
|
|
5241
|
+
{ value: "100", label: __53("100 - Thin", "elementor") },
|
|
5242
|
+
{ value: "200", label: __53("200 - Extra light", "elementor") },
|
|
5243
|
+
{ value: "300", label: __53("300 - Light", "elementor") },
|
|
5244
|
+
{ value: "400", label: __53("400 - Normal", "elementor") },
|
|
5245
|
+
{ value: "500", label: __53("500 - Medium", "elementor") },
|
|
5246
|
+
{ value: "600", label: __53("600 - Semi bold", "elementor") },
|
|
5247
|
+
{ value: "700", label: __53("700 - Bold", "elementor") },
|
|
5248
|
+
{ value: "800", label: __53("800 - Extra bold", "elementor") },
|
|
5249
|
+
{ value: "900", label: __53("900 - Black", "elementor") }
|
|
5187
5250
|
];
|
|
5188
5251
|
var FontWeightField = () => {
|
|
5189
5252
|
return /* @__PURE__ */ React76.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React76.createElement(SelectControl5, { options: fontWeightOptions })));
|
|
@@ -5193,8 +5256,8 @@ var FontWeightField = () => {
|
|
|
5193
5256
|
import * as React77 from "react";
|
|
5194
5257
|
import { useRef as useRef16 } from "react";
|
|
5195
5258
|
import { SizeControl as SizeControl10 } from "@elementor/editor-controls";
|
|
5196
|
-
import { __ as
|
|
5197
|
-
var LETTER_SPACING_LABEL =
|
|
5259
|
+
import { __ as __54 } from "@wordpress/i18n";
|
|
5260
|
+
var LETTER_SPACING_LABEL = __54("Letter spacing", "elementor");
|
|
5198
5261
|
var LetterSpacingField = () => {
|
|
5199
5262
|
const rowRef = useRef16(null);
|
|
5200
5263
|
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(SizeControl10, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
@@ -5204,8 +5267,8 @@ var LetterSpacingField = () => {
|
|
|
5204
5267
|
import * as React78 from "react";
|
|
5205
5268
|
import { useRef as useRef17 } from "react";
|
|
5206
5269
|
import { SizeControl as SizeControl11 } from "@elementor/editor-controls";
|
|
5207
|
-
import { __ as
|
|
5208
|
-
var LINE_HEIGHT_LABEL =
|
|
5270
|
+
import { __ as __55 } from "@wordpress/i18n";
|
|
5271
|
+
var LINE_HEIGHT_LABEL = __55("Line height", "elementor");
|
|
5209
5272
|
var LineHeightField = () => {
|
|
5210
5273
|
const rowRef = useRef17(null);
|
|
5211
5274
|
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(SizeControl11, { anchorRef: rowRef })));
|
|
@@ -5216,32 +5279,32 @@ import * as React79 from "react";
|
|
|
5216
5279
|
import { ToggleControl as ToggleControl13 } from "@elementor/editor-controls";
|
|
5217
5280
|
import { AlignCenterIcon, AlignJustifiedIcon, AlignLeftIcon, AlignRightIcon } from "@elementor/icons";
|
|
5218
5281
|
import { withDirection as withDirection11 } from "@elementor/ui";
|
|
5219
|
-
import { __ as
|
|
5220
|
-
var TEXT_ALIGNMENT_LABEL =
|
|
5282
|
+
import { __ as __56 } from "@wordpress/i18n";
|
|
5283
|
+
var TEXT_ALIGNMENT_LABEL = __56("Text align", "elementor");
|
|
5221
5284
|
var AlignStartIcon = withDirection11(AlignLeftIcon);
|
|
5222
5285
|
var AlignEndIcon = withDirection11(AlignRightIcon);
|
|
5223
5286
|
var options9 = [
|
|
5224
5287
|
{
|
|
5225
5288
|
value: "start",
|
|
5226
|
-
label:
|
|
5289
|
+
label: __56("Start", "elementor"),
|
|
5227
5290
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignStartIcon, { fontSize: size }),
|
|
5228
5291
|
showTooltip: true
|
|
5229
5292
|
},
|
|
5230
5293
|
{
|
|
5231
5294
|
value: "center",
|
|
5232
|
-
label:
|
|
5295
|
+
label: __56("Center", "elementor"),
|
|
5233
5296
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignCenterIcon, { fontSize: size }),
|
|
5234
5297
|
showTooltip: true
|
|
5235
5298
|
},
|
|
5236
5299
|
{
|
|
5237
5300
|
value: "end",
|
|
5238
|
-
label:
|
|
5301
|
+
label: __56("End", "elementor"),
|
|
5239
5302
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignEndIcon, { fontSize: size }),
|
|
5240
5303
|
showTooltip: true
|
|
5241
5304
|
},
|
|
5242
5305
|
{
|
|
5243
5306
|
value: "justify",
|
|
5244
|
-
label:
|
|
5307
|
+
label: __56("Justify", "elementor"),
|
|
5245
5308
|
renderContent: ({ size }) => /* @__PURE__ */ React79.createElement(AlignJustifiedIcon, { fontSize: size }),
|
|
5246
5309
|
showTooltip: true
|
|
5247
5310
|
}
|
|
@@ -5253,8 +5316,8 @@ var TextAlignmentField = () => {
|
|
|
5253
5316
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
5254
5317
|
import * as React80 from "react";
|
|
5255
5318
|
import { ColorControl as ColorControl2 } from "@elementor/editor-controls";
|
|
5256
|
-
import { __ as
|
|
5257
|
-
var TEXT_COLOR_LABEL =
|
|
5319
|
+
import { __ as __57 } from "@wordpress/i18n";
|
|
5320
|
+
var TEXT_COLOR_LABEL = __57("Text color", "elementor");
|
|
5258
5321
|
var TextColorField = () => {
|
|
5259
5322
|
return /* @__PURE__ */ React80.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React80.createElement(ColorControl2, { id: "text-color-control" })));
|
|
5260
5323
|
};
|
|
@@ -5263,31 +5326,31 @@ var TextColorField = () => {
|
|
|
5263
5326
|
import * as React81 from "react";
|
|
5264
5327
|
import { ToggleControl as ToggleControl14 } from "@elementor/editor-controls";
|
|
5265
5328
|
import { MinusIcon as MinusIcon2, OverlineIcon, StrikethroughIcon, UnderlineIcon } from "@elementor/icons";
|
|
5266
|
-
import { __ as
|
|
5267
|
-
var TEXT_DECORATION_LABEL =
|
|
5329
|
+
import { __ as __58 } from "@wordpress/i18n";
|
|
5330
|
+
var TEXT_DECORATION_LABEL = __58("Line decoration", "elementor");
|
|
5268
5331
|
var options10 = [
|
|
5269
5332
|
{
|
|
5270
5333
|
value: "none",
|
|
5271
|
-
label:
|
|
5334
|
+
label: __58("None", "elementor"),
|
|
5272
5335
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(MinusIcon2, { fontSize: size }),
|
|
5273
5336
|
showTooltip: true,
|
|
5274
5337
|
exclusive: true
|
|
5275
5338
|
},
|
|
5276
5339
|
{
|
|
5277
5340
|
value: "underline",
|
|
5278
|
-
label:
|
|
5341
|
+
label: __58("Underline", "elementor"),
|
|
5279
5342
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(UnderlineIcon, { fontSize: size }),
|
|
5280
5343
|
showTooltip: true
|
|
5281
5344
|
},
|
|
5282
5345
|
{
|
|
5283
5346
|
value: "line-through",
|
|
5284
|
-
label:
|
|
5347
|
+
label: __58("Line-through", "elementor"),
|
|
5285
5348
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(StrikethroughIcon, { fontSize: size }),
|
|
5286
5349
|
showTooltip: true
|
|
5287
5350
|
},
|
|
5288
5351
|
{
|
|
5289
5352
|
value: "overline",
|
|
5290
|
-
label:
|
|
5353
|
+
label: __58("Overline", "elementor"),
|
|
5291
5354
|
renderContent: ({ size }) => /* @__PURE__ */ React81.createElement(OverlineIcon, { fontSize: size }),
|
|
5292
5355
|
showTooltip: true
|
|
5293
5356
|
}
|
|
@@ -5298,18 +5361,18 @@ var TextDecorationField = () => /* @__PURE__ */ React81.createElement(StylesFiel
|
|
|
5298
5361
|
import * as React82 from "react";
|
|
5299
5362
|
import { ToggleControl as ToggleControl15 } from "@elementor/editor-controls";
|
|
5300
5363
|
import { TextDirectionLtrIcon, TextDirectionRtlIcon } from "@elementor/icons";
|
|
5301
|
-
import { __ as
|
|
5302
|
-
var TEXT_DIRECTION_LABEL =
|
|
5364
|
+
import { __ as __59 } from "@wordpress/i18n";
|
|
5365
|
+
var TEXT_DIRECTION_LABEL = __59("Direction", "elementor");
|
|
5303
5366
|
var options11 = [
|
|
5304
5367
|
{
|
|
5305
5368
|
value: "ltr",
|
|
5306
|
-
label:
|
|
5369
|
+
label: __59("Left to right", "elementor"),
|
|
5307
5370
|
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(TextDirectionLtrIcon, { fontSize: size }),
|
|
5308
5371
|
showTooltip: true
|
|
5309
5372
|
},
|
|
5310
5373
|
{
|
|
5311
5374
|
value: "rtl",
|
|
5312
|
-
label:
|
|
5375
|
+
label: __59("Right to left", "elementor"),
|
|
5313
5376
|
renderContent: ({ size }) => /* @__PURE__ */ React82.createElement(TextDirectionRtlIcon, { fontSize: size }),
|
|
5314
5377
|
showTooltip: true
|
|
5315
5378
|
}
|
|
@@ -5321,7 +5384,7 @@ var TextDirectionField = () => {
|
|
|
5321
5384
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
5322
5385
|
import * as React84 from "react";
|
|
5323
5386
|
import { StrokeControl } from "@elementor/editor-controls";
|
|
5324
|
-
import { __ as
|
|
5387
|
+
import { __ as __60 } from "@wordpress/i18n";
|
|
5325
5388
|
|
|
5326
5389
|
// src/components/add-or-remove-content.tsx
|
|
5327
5390
|
import * as React83 from "react";
|
|
@@ -5368,7 +5431,7 @@ var initTextStroke = {
|
|
|
5368
5431
|
}
|
|
5369
5432
|
}
|
|
5370
5433
|
};
|
|
5371
|
-
var TEXT_STROKE_LABEL =
|
|
5434
|
+
var TEXT_STROKE_LABEL = __60("Text stroke", "elementor");
|
|
5372
5435
|
var TextStrokeField = () => {
|
|
5373
5436
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
5374
5437
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -5397,30 +5460,30 @@ var TextStrokeField = () => {
|
|
|
5397
5460
|
import * as React85 from "react";
|
|
5398
5461
|
import { ToggleControl as ToggleControl16 } from "@elementor/editor-controls";
|
|
5399
5462
|
import { LetterCaseIcon, LetterCaseLowerIcon, LetterCaseUpperIcon, MinusIcon as MinusIcon4 } from "@elementor/icons";
|
|
5400
|
-
import { __ as
|
|
5401
|
-
var TEXT_TRANSFORM_LABEL =
|
|
5463
|
+
import { __ as __61 } from "@wordpress/i18n";
|
|
5464
|
+
var TEXT_TRANSFORM_LABEL = __61("Text transform", "elementor");
|
|
5402
5465
|
var options12 = [
|
|
5403
5466
|
{
|
|
5404
5467
|
value: "none",
|
|
5405
|
-
label:
|
|
5468
|
+
label: __61("None", "elementor"),
|
|
5406
5469
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(MinusIcon4, { fontSize: size }),
|
|
5407
5470
|
showTooltip: true
|
|
5408
5471
|
},
|
|
5409
5472
|
{
|
|
5410
5473
|
value: "capitalize",
|
|
5411
|
-
label:
|
|
5474
|
+
label: __61("Capitalize", "elementor"),
|
|
5412
5475
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseIcon, { fontSize: size }),
|
|
5413
5476
|
showTooltip: true
|
|
5414
5477
|
},
|
|
5415
5478
|
{
|
|
5416
5479
|
value: "uppercase",
|
|
5417
|
-
label:
|
|
5480
|
+
label: __61("Uppercase", "elementor"),
|
|
5418
5481
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseUpperIcon, { fontSize: size }),
|
|
5419
5482
|
showTooltip: true
|
|
5420
5483
|
},
|
|
5421
5484
|
{
|
|
5422
5485
|
value: "lowercase",
|
|
5423
|
-
label:
|
|
5486
|
+
label: __61("Lowercase", "elementor"),
|
|
5424
5487
|
renderContent: ({ size }) => /* @__PURE__ */ React85.createElement(LetterCaseLowerIcon, { fontSize: size }),
|
|
5425
5488
|
showTooltip: true
|
|
5426
5489
|
}
|
|
@@ -5431,8 +5494,8 @@ var TransformField = () => /* @__PURE__ */ React85.createElement(StylesField, {
|
|
|
5431
5494
|
import * as React86 from "react";
|
|
5432
5495
|
import { useRef as useRef18 } from "react";
|
|
5433
5496
|
import { SizeControl as SizeControl12 } from "@elementor/editor-controls";
|
|
5434
|
-
import { __ as
|
|
5435
|
-
var WORD_SPACING_LABEL =
|
|
5497
|
+
import { __ as __62 } from "@wordpress/i18n";
|
|
5498
|
+
var WORD_SPACING_LABEL = __62("Word spacing", "elementor");
|
|
5436
5499
|
var WordSpacingField = () => {
|
|
5437
5500
|
const rowRef = useRef18(null);
|
|
5438
5501
|
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(SizeControl12, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
@@ -5459,6 +5522,107 @@ var TypographySection = () => {
|
|
|
5459
5522
|
));
|
|
5460
5523
|
};
|
|
5461
5524
|
|
|
5525
|
+
// src/components/style-sections-definition.ts
|
|
5526
|
+
var STYLE_SECTIONS = [
|
|
5527
|
+
{
|
|
5528
|
+
name: "Layout",
|
|
5529
|
+
title: __63("Layout", "elementor"),
|
|
5530
|
+
component: LayoutSection,
|
|
5531
|
+
fields: [
|
|
5532
|
+
"display",
|
|
5533
|
+
"flex-direction",
|
|
5534
|
+
"flex-wrap",
|
|
5535
|
+
"justify-content",
|
|
5536
|
+
"align-items",
|
|
5537
|
+
"align-content",
|
|
5538
|
+
"align-self",
|
|
5539
|
+
"gap",
|
|
5540
|
+
"order",
|
|
5541
|
+
"grid-column",
|
|
5542
|
+
"grid-row",
|
|
5543
|
+
"grid-auto-rows",
|
|
5544
|
+
"grid-auto-columns"
|
|
5545
|
+
]
|
|
5546
|
+
},
|
|
5547
|
+
{
|
|
5548
|
+
name: "Spacing",
|
|
5549
|
+
title: __63("Spacing", "elementor"),
|
|
5550
|
+
component: SpacingSection,
|
|
5551
|
+
fields: ["margin", "padding"]
|
|
5552
|
+
},
|
|
5553
|
+
{
|
|
5554
|
+
name: "Size",
|
|
5555
|
+
title: __63("Size", "elementor"),
|
|
5556
|
+
component: SizeSection,
|
|
5557
|
+
fields: [
|
|
5558
|
+
"width",
|
|
5559
|
+
"min-width",
|
|
5560
|
+
"max-width",
|
|
5561
|
+
"height",
|
|
5562
|
+
"min-height",
|
|
5563
|
+
"max-height",
|
|
5564
|
+
"overflow",
|
|
5565
|
+
"aspect-ratio",
|
|
5566
|
+
"object-fit"
|
|
5567
|
+
]
|
|
5568
|
+
},
|
|
5569
|
+
{
|
|
5570
|
+
name: "Position",
|
|
5571
|
+
title: __63("Position", "elementor"),
|
|
5572
|
+
component: PositionSection,
|
|
5573
|
+
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5574
|
+
},
|
|
5575
|
+
{
|
|
5576
|
+
name: "Typography",
|
|
5577
|
+
title: __63("Typography", "elementor"),
|
|
5578
|
+
component: TypographySection,
|
|
5579
|
+
fields: [
|
|
5580
|
+
"font-family",
|
|
5581
|
+
"font-weight",
|
|
5582
|
+
"font-size",
|
|
5583
|
+
"text-align",
|
|
5584
|
+
"color",
|
|
5585
|
+
"line-height",
|
|
5586
|
+
"letter-spacing",
|
|
5587
|
+
"word-spacing",
|
|
5588
|
+
"column-count",
|
|
5589
|
+
"text-decoration",
|
|
5590
|
+
"text-transform",
|
|
5591
|
+
"direction",
|
|
5592
|
+
"font-style",
|
|
5593
|
+
"stroke"
|
|
5594
|
+
]
|
|
5595
|
+
},
|
|
5596
|
+
{
|
|
5597
|
+
name: "Background",
|
|
5598
|
+
title: __63("Background", "elementor"),
|
|
5599
|
+
component: BackgroundSection,
|
|
5600
|
+
fields: ["background"]
|
|
5601
|
+
},
|
|
5602
|
+
{
|
|
5603
|
+
name: "Border",
|
|
5604
|
+
title: __63("Border", "elementor"),
|
|
5605
|
+
component: BorderSection,
|
|
5606
|
+
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5607
|
+
},
|
|
5608
|
+
{
|
|
5609
|
+
name: "Effects",
|
|
5610
|
+
title: __63("Effects", "elementor"),
|
|
5611
|
+
component: EffectsSection,
|
|
5612
|
+
fields: [
|
|
5613
|
+
"mix-blend-mode",
|
|
5614
|
+
"box-shadow",
|
|
5615
|
+
"opacity",
|
|
5616
|
+
"transform",
|
|
5617
|
+
"filter",
|
|
5618
|
+
"backdrop-filter",
|
|
5619
|
+
"transform-origin",
|
|
5620
|
+
"transition"
|
|
5621
|
+
]
|
|
5622
|
+
}
|
|
5623
|
+
];
|
|
5624
|
+
var STYLE_SECTION_NAMES = STYLE_SECTIONS.map((section) => section.name);
|
|
5625
|
+
|
|
5462
5626
|
// src/components/style-tab-section.tsx
|
|
5463
5627
|
import * as React88 from "react";
|
|
5464
5628
|
var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
@@ -5479,6 +5643,22 @@ var StyleTabSection = ({ section, fields = [], unmountOnExit = true }) => {
|
|
|
5479
5643
|
);
|
|
5480
5644
|
};
|
|
5481
5645
|
|
|
5646
|
+
// src/components/style-sections.tsx
|
|
5647
|
+
var StyleSections = () => {
|
|
5648
|
+
return /* @__PURE__ */ React89.createElement(React89.Fragment, null, STYLE_SECTIONS.map((section) => /* @__PURE__ */ React89.createElement(
|
|
5649
|
+
StyleTabSection,
|
|
5650
|
+
{
|
|
5651
|
+
key: section.name,
|
|
5652
|
+
section: {
|
|
5653
|
+
component: section.component,
|
|
5654
|
+
name: section.name,
|
|
5655
|
+
title: section.title
|
|
5656
|
+
},
|
|
5657
|
+
fields: section.fields
|
|
5658
|
+
}
|
|
5659
|
+
)));
|
|
5660
|
+
};
|
|
5661
|
+
|
|
5482
5662
|
// src/components/style-tab.tsx
|
|
5483
5663
|
var TABS_HEADER_HEIGHT = "37px";
|
|
5484
5664
|
var { Slot: StyleTabSlot, inject: injectIntoStyleTab } = createLocation4();
|
|
@@ -5497,7 +5677,7 @@ var StyleTab = () => {
|
|
|
5497
5677
|
if (!currentClassesProp) {
|
|
5498
5678
|
return null;
|
|
5499
5679
|
}
|
|
5500
|
-
return /* @__PURE__ */
|
|
5680
|
+
return /* @__PURE__ */ React90.createElement(ClassesPropProvider, { prop: currentClassesProp }, /* @__PURE__ */ React90.createElement(
|
|
5501
5681
|
StyleProvider,
|
|
5502
5682
|
{
|
|
5503
5683
|
meta: { breakpoint, state: activeStyleState },
|
|
@@ -5508,140 +5688,21 @@ var StyleTab = () => {
|
|
|
5508
5688
|
},
|
|
5509
5689
|
setMetaState: setActiveStyleState
|
|
5510
5690
|
},
|
|
5511
|
-
/* @__PURE__ */
|
|
5512
|
-
StyleTabSection,
|
|
5513
|
-
{
|
|
5514
|
-
section: {
|
|
5515
|
-
component: LayoutSection,
|
|
5516
|
-
name: "Layout",
|
|
5517
|
-
title: __62("Layout", "elementor")
|
|
5518
|
-
},
|
|
5519
|
-
fields: [
|
|
5520
|
-
"display",
|
|
5521
|
-
"flex-direction",
|
|
5522
|
-
"flex-wrap",
|
|
5523
|
-
"justify-content",
|
|
5524
|
-
"align-items",
|
|
5525
|
-
"align-content",
|
|
5526
|
-
"align-self",
|
|
5527
|
-
"gap",
|
|
5528
|
-
"order",
|
|
5529
|
-
"grid-column",
|
|
5530
|
-
"grid-row",
|
|
5531
|
-
"grid-auto-rows",
|
|
5532
|
-
"grid-auto-columns"
|
|
5533
|
-
]
|
|
5534
|
-
}
|
|
5535
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5536
|
-
StyleTabSection,
|
|
5537
|
-
{
|
|
5538
|
-
section: {
|
|
5539
|
-
component: SpacingSection,
|
|
5540
|
-
name: "Spacing",
|
|
5541
|
-
title: __62("Spacing", "elementor")
|
|
5542
|
-
},
|
|
5543
|
-
fields: ["margin", "padding"]
|
|
5544
|
-
}
|
|
5545
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5546
|
-
StyleTabSection,
|
|
5547
|
-
{
|
|
5548
|
-
section: {
|
|
5549
|
-
component: SizeSection,
|
|
5550
|
-
name: "Size",
|
|
5551
|
-
title: __62("Size", "elementor")
|
|
5552
|
-
},
|
|
5553
|
-
fields: [
|
|
5554
|
-
"width",
|
|
5555
|
-
"min-width",
|
|
5556
|
-
"max-width",
|
|
5557
|
-
"height",
|
|
5558
|
-
"min-height",
|
|
5559
|
-
"max-height",
|
|
5560
|
-
"overflow",
|
|
5561
|
-
"aspect-ratio",
|
|
5562
|
-
"object-fit"
|
|
5563
|
-
]
|
|
5564
|
-
}
|
|
5565
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5566
|
-
StyleTabSection,
|
|
5567
|
-
{
|
|
5568
|
-
section: {
|
|
5569
|
-
component: PositionSection,
|
|
5570
|
-
name: "Position",
|
|
5571
|
-
title: __62("Position", "elementor")
|
|
5572
|
-
},
|
|
5573
|
-
fields: ["position", "z-index", "scroll-margin-top"]
|
|
5574
|
-
}
|
|
5575
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5576
|
-
StyleTabSection,
|
|
5577
|
-
{
|
|
5578
|
-
section: {
|
|
5579
|
-
component: TypographySection,
|
|
5580
|
-
name: "Typography",
|
|
5581
|
-
title: __62("Typography", "elementor")
|
|
5582
|
-
},
|
|
5583
|
-
fields: [
|
|
5584
|
-
"font-family",
|
|
5585
|
-
"font-weight",
|
|
5586
|
-
"font-size",
|
|
5587
|
-
"text-align",
|
|
5588
|
-
"color",
|
|
5589
|
-
"line-height",
|
|
5590
|
-
"letter-spacing",
|
|
5591
|
-
"word-spacing",
|
|
5592
|
-
"column-count",
|
|
5593
|
-
"text-decoration",
|
|
5594
|
-
"text-transform",
|
|
5595
|
-
"direction",
|
|
5596
|
-
"font-style",
|
|
5597
|
-
"stroke"
|
|
5598
|
-
]
|
|
5599
|
-
}
|
|
5600
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5601
|
-
StyleTabSection,
|
|
5602
|
-
{
|
|
5603
|
-
section: {
|
|
5604
|
-
component: BackgroundSection,
|
|
5605
|
-
name: "Background",
|
|
5606
|
-
title: __62("Background", "elementor")
|
|
5607
|
-
},
|
|
5608
|
-
fields: ["background"]
|
|
5609
|
-
}
|
|
5610
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5611
|
-
StyleTabSection,
|
|
5612
|
-
{
|
|
5613
|
-
section: {
|
|
5614
|
-
component: BorderSection,
|
|
5615
|
-
name: "Border",
|
|
5616
|
-
title: __62("Border", "elementor")
|
|
5617
|
-
},
|
|
5618
|
-
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
5619
|
-
}
|
|
5620
|
-
), /* @__PURE__ */ React89.createElement(
|
|
5621
|
-
StyleTabSection,
|
|
5622
|
-
{
|
|
5623
|
-
section: {
|
|
5624
|
-
component: EffectsSection,
|
|
5625
|
-
name: "Effects",
|
|
5626
|
-
title: __62("Effects", "elementor")
|
|
5627
|
-
},
|
|
5628
|
-
fields: [
|
|
5629
|
-
"mix-blend-mode",
|
|
5630
|
-
"box-shadow",
|
|
5631
|
-
"opacity",
|
|
5632
|
-
"transform",
|
|
5633
|
-
"filter",
|
|
5634
|
-
"backdrop-filter",
|
|
5635
|
-
"transform-origin",
|
|
5636
|
-
"transition"
|
|
5637
|
-
]
|
|
5638
|
-
}
|
|
5639
|
-
), /* @__PURE__ */ React89.createElement(StyleTabSlot, null)), /* @__PURE__ */ React89.createElement(Box7, { sx: { height: "150px" } })))
|
|
5691
|
+
/* @__PURE__ */ React90.createElement(SessionStorageProvider2, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React90.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React90.createElement(ClassesHeader, null, /* @__PURE__ */ React90.createElement(CssClassSelector, null), /* @__PURE__ */ React90.createElement(Divider5, null)), /* @__PURE__ */ React90.createElement(SectionsList, null, /* @__PURE__ */ React90.createElement(StyleSections, null), /* @__PURE__ */ React90.createElement(StyleTabSlot, null)), /* @__PURE__ */ React90.createElement(Box7, { sx: { height: "150px" } })))
|
|
5640
5692
|
));
|
|
5641
5693
|
};
|
|
5642
5694
|
function ClassesHeader({ children }) {
|
|
5643
5695
|
const scrollDirection = useScrollDirection();
|
|
5644
|
-
return /* @__PURE__ */
|
|
5696
|
+
return /* @__PURE__ */ React90.createElement(
|
|
5697
|
+
Stack13,
|
|
5698
|
+
{
|
|
5699
|
+
sx: {
|
|
5700
|
+
...stickyHeaderStyles,
|
|
5701
|
+
top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0
|
|
5702
|
+
}
|
|
5703
|
+
},
|
|
5704
|
+
children
|
|
5705
|
+
);
|
|
5645
5706
|
}
|
|
5646
5707
|
function useCurrentClassesProp() {
|
|
5647
5708
|
const { elementType } = useElement();
|
|
@@ -5660,7 +5721,7 @@ var EditingPanelTabs = () => {
|
|
|
5660
5721
|
return (
|
|
5661
5722
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
5662
5723
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
5663
|
-
/* @__PURE__ */
|
|
5724
|
+
/* @__PURE__ */ React91.createElement(Fragment10, { key: element.id }, /* @__PURE__ */ React91.createElement(PanelTabContent, null))
|
|
5664
5725
|
);
|
|
5665
5726
|
};
|
|
5666
5727
|
var PanelTabContent = () => {
|
|
@@ -5671,7 +5732,7 @@ var PanelTabContent = () => {
|
|
|
5671
5732
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5672
5733
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5673
5734
|
const { getTabProps, getTabPanelProps, getTabsProps } = useTabs(currentTab);
|
|
5674
|
-
return /* @__PURE__ */
|
|
5735
|
+
return /* @__PURE__ */ React91.createElement(ScrollProvider, null, /* @__PURE__ */ React91.createElement(Stack14, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React91.createElement(Stack14, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React91.createElement(
|
|
5675
5736
|
Tabs,
|
|
5676
5737
|
{
|
|
5677
5738
|
variant: "fullWidth",
|
|
@@ -5683,10 +5744,10 @@ var PanelTabContent = () => {
|
|
|
5683
5744
|
setCurrentTab(newValue);
|
|
5684
5745
|
}
|
|
5685
5746
|
},
|
|
5686
|
-
!isPromotedElement && /* @__PURE__ */
|
|
5687
|
-
/* @__PURE__ */
|
|
5688
|
-
/* @__PURE__ */
|
|
5689
|
-
), /* @__PURE__ */
|
|
5747
|
+
!isPromotedElement && /* @__PURE__ */ React91.createElement(Tab, { label: __64("General", "elementor"), ...getTabProps("settings") }),
|
|
5748
|
+
/* @__PURE__ */ React91.createElement(Tab, { label: __64("Style", "elementor"), ...getTabProps("style") }),
|
|
5749
|
+
/* @__PURE__ */ React91.createElement(Tab, { label: __64("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5750
|
+
), /* @__PURE__ */ React91.createElement(Divider6, null)), !isPromotedElement && /* @__PURE__ */ React91.createElement(TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React91.createElement(SettingsTab, null)), /* @__PURE__ */ React91.createElement(TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React91.createElement(StyleTab, null)), /* @__PURE__ */ React91.createElement(TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React91.createElement(InteractionsTab, null))));
|
|
5690
5751
|
};
|
|
5691
5752
|
|
|
5692
5753
|
// src/components/editing-panel.tsx
|
|
@@ -5699,15 +5760,47 @@ var EditingPanel = () => {
|
|
|
5699
5760
|
if (!element || !elementType) {
|
|
5700
5761
|
return null;
|
|
5701
5762
|
}
|
|
5702
|
-
const panelTitle =
|
|
5763
|
+
const panelTitle = __65("Edit %s", "elementor").replace("%s", elementType.title);
|
|
5703
5764
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
5704
|
-
let panelContent = /* @__PURE__ */
|
|
5765
|
+
let panelContent = /* @__PURE__ */ React92.createElement(React92.Fragment, null, /* @__PURE__ */ React92.createElement(PanelHeader, null, /* @__PURE__ */ React92.createElement(PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React92.createElement(AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React92.createElement(PanelBody, { sx: { height: "auto", flex: 1, minHeight: 0 } }, /* @__PURE__ */ React92.createElement(EditingPanelTabs, null)), /* @__PURE__ */ React92.createElement(EditingPanelStickyPromotion, null));
|
|
5705
5766
|
if (ReplacementComponent) {
|
|
5706
|
-
panelContent = /* @__PURE__ */
|
|
5767
|
+
panelContent = /* @__PURE__ */ React92.createElement(ReplacementComponent, null);
|
|
5707
5768
|
}
|
|
5708
|
-
return /* @__PURE__ */
|
|
5769
|
+
return /* @__PURE__ */ React92.createElement(ErrorBoundary, { fallback: /* @__PURE__ */ React92.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React92.createElement(SessionStorageProvider3, { prefix: "elementor" }, /* @__PURE__ */ React92.createElement(ThemeProvider3, null, /* @__PURE__ */ React92.createElement(ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React92.createElement(ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React92.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React92.createElement(Panel, null, /* @__PURE__ */ React92.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5709
5770
|
};
|
|
5710
5771
|
|
|
5772
|
+
// src/components/style-states/pseudo-state-menu-items.tsx
|
|
5773
|
+
import * as React93 from "react";
|
|
5774
|
+
import { MenuListItem as MenuListItem3 } from "@elementor/editor-ui";
|
|
5775
|
+
import { MenuSubheader as MenuSubheader3 } from "@elementor/ui";
|
|
5776
|
+
import { __ as __66 } from "@wordpress/i18n";
|
|
5777
|
+
function PseudoStateMenuItems({ states, activeState, onSelectState, onClose }) {
|
|
5778
|
+
return /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(
|
|
5779
|
+
MenuSubheader3,
|
|
5780
|
+
{
|
|
5781
|
+
sx: {
|
|
5782
|
+
typography: "caption",
|
|
5783
|
+
color: "text.secondary",
|
|
5784
|
+
pb: 0.5,
|
|
5785
|
+
pt: 1
|
|
5786
|
+
}
|
|
5787
|
+
},
|
|
5788
|
+
__66("States", "elementor")
|
|
5789
|
+
), states.map((state) => /* @__PURE__ */ React93.createElement(
|
|
5790
|
+
MenuListItem3,
|
|
5791
|
+
{
|
|
5792
|
+
key: state.key,
|
|
5793
|
+
selected: state.value === activeState,
|
|
5794
|
+
sx: { textTransform: "capitalize" },
|
|
5795
|
+
onClick: () => {
|
|
5796
|
+
onSelectState(state.value);
|
|
5797
|
+
onClose?.();
|
|
5798
|
+
}
|
|
5799
|
+
},
|
|
5800
|
+
state.label
|
|
5801
|
+
)));
|
|
5802
|
+
}
|
|
5803
|
+
|
|
5711
5804
|
// src/init.ts
|
|
5712
5805
|
import { injectIntoLogic } from "@elementor/editor";
|
|
5713
5806
|
import { registerPanel } from "@elementor/editor-panels";
|
|
@@ -5757,21 +5850,21 @@ var EditingPanelHooks = () => {
|
|
|
5757
5850
|
import { AttributesControl, DisplayConditionsControl } from "@elementor/editor-controls";
|
|
5758
5851
|
|
|
5759
5852
|
// src/components/promotions/custom-css.tsx
|
|
5760
|
-
import * as
|
|
5853
|
+
import * as React94 from "react";
|
|
5761
5854
|
import { useRef as useRef19 } from "react";
|
|
5762
5855
|
import { PromotionTrigger } from "@elementor/editor-controls";
|
|
5763
|
-
import { __ as
|
|
5856
|
+
import { __ as __67 } from "@wordpress/i18n";
|
|
5764
5857
|
var TRACKING_DATA = { target_name: "custom_css", location_l2: "style" };
|
|
5765
5858
|
var CustomCssSection = () => {
|
|
5766
5859
|
const triggerRef = useRef19(null);
|
|
5767
|
-
return /* @__PURE__ */
|
|
5860
|
+
return /* @__PURE__ */ React94.createElement(
|
|
5768
5861
|
StyleTabSection,
|
|
5769
5862
|
{
|
|
5770
5863
|
section: {
|
|
5771
5864
|
name: "Custom CSS",
|
|
5772
|
-
title:
|
|
5865
|
+
title: __67("Custom CSS", "elementor"),
|
|
5773
5866
|
action: {
|
|
5774
|
-
component: /* @__PURE__ */
|
|
5867
|
+
component: /* @__PURE__ */ React94.createElement(PromotionTrigger, { ref: triggerRef, promotionKey: "customCss", trackingData: TRACKING_DATA }),
|
|
5775
5868
|
onClick: () => triggerRef.current?.toggle()
|
|
5776
5869
|
}
|
|
5777
5870
|
}
|
|
@@ -5793,7 +5886,7 @@ var init = () => {
|
|
|
5793
5886
|
};
|
|
5794
5887
|
|
|
5795
5888
|
// src/controls-registry/element-controls/tabs-control/tabs-control.tsx
|
|
5796
|
-
import * as
|
|
5889
|
+
import * as React95 from "react";
|
|
5797
5890
|
import {
|
|
5798
5891
|
ControlFormLabel as ControlFormLabel3,
|
|
5799
5892
|
Repeater,
|
|
@@ -5807,7 +5900,7 @@ import {
|
|
|
5807
5900
|
import { numberPropTypeUtil as numberPropTypeUtil4 } from "@elementor/editor-props";
|
|
5808
5901
|
import { InfoCircleFilledIcon as InfoCircleFilledIcon2 } from "@elementor/icons";
|
|
5809
5902
|
import { Alert as Alert4, Chip as Chip4, Infotip as Infotip2, Stack as Stack15, Switch as Switch2, TextField as TextField2, Typography as Typography5 } from "@elementor/ui";
|
|
5810
|
-
import { __ as
|
|
5903
|
+
import { __ as __69 } from "@wordpress/i18n";
|
|
5811
5904
|
|
|
5812
5905
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
5813
5906
|
import { getContainer as getContainer2 } from "@elementor/editor-elements";
|
|
@@ -5832,7 +5925,7 @@ import {
|
|
|
5832
5925
|
removeElements
|
|
5833
5926
|
} from "@elementor/editor-elements";
|
|
5834
5927
|
import { numberPropTypeUtil as numberPropTypeUtil3 } from "@elementor/editor-props";
|
|
5835
|
-
import { __ as
|
|
5928
|
+
import { __ as __68 } from "@wordpress/i18n";
|
|
5836
5929
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
5837
5930
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
5838
5931
|
var useActions = () => {
|
|
@@ -5855,7 +5948,7 @@ var useActions = () => {
|
|
|
5855
5948
|
}
|
|
5856
5949
|
duplicateElements({
|
|
5857
5950
|
elementIds: [tabId, tabContentId],
|
|
5858
|
-
title:
|
|
5951
|
+
title: __68("Duplicate Tab", "elementor"),
|
|
5859
5952
|
onDuplicateElements: () => {
|
|
5860
5953
|
if (newDefault !== defaultActiveTab) {
|
|
5861
5954
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -5892,7 +5985,7 @@ var useActions = () => {
|
|
|
5892
5985
|
defaultActiveTab
|
|
5893
5986
|
});
|
|
5894
5987
|
moveElements({
|
|
5895
|
-
title:
|
|
5988
|
+
title: __68("Reorder Tabs", "elementor"),
|
|
5896
5989
|
moves: [
|
|
5897
5990
|
{
|
|
5898
5991
|
element: movedElement,
|
|
@@ -5926,7 +6019,7 @@ var useActions = () => {
|
|
|
5926
6019
|
defaultActiveTab
|
|
5927
6020
|
});
|
|
5928
6021
|
removeElements({
|
|
5929
|
-
title:
|
|
6022
|
+
title: __68("Tabs", "elementor"),
|
|
5930
6023
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5931
6024
|
const tabId = item.id;
|
|
5932
6025
|
const tabContentContainer = getContainer3(tabContentAreaId);
|
|
@@ -5961,7 +6054,7 @@ var useActions = () => {
|
|
|
5961
6054
|
items3.forEach(({ index }) => {
|
|
5962
6055
|
const position = index + 1;
|
|
5963
6056
|
createElements({
|
|
5964
|
-
title:
|
|
6057
|
+
title: __68("Tabs", "elementor"),
|
|
5965
6058
|
elements: [
|
|
5966
6059
|
{
|
|
5967
6060
|
container: tabContentArea,
|
|
@@ -6030,7 +6123,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
6030
6123
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
6031
6124
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
6032
6125
|
var TabsControl = ({ label }) => {
|
|
6033
|
-
return /* @__PURE__ */
|
|
6126
|
+
return /* @__PURE__ */ React95.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __69("Tabs", "elementor") }, /* @__PURE__ */ React95.createElement(TabsControlContent, { label }));
|
|
6034
6127
|
};
|
|
6035
6128
|
var TabsControlContent = ({ label }) => {
|
|
6036
6129
|
const { element } = useElement();
|
|
@@ -6074,7 +6167,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6074
6167
|
});
|
|
6075
6168
|
}
|
|
6076
6169
|
};
|
|
6077
|
-
return /* @__PURE__ */
|
|
6170
|
+
return /* @__PURE__ */ React95.createElement(
|
|
6078
6171
|
Repeater,
|
|
6079
6172
|
{
|
|
6080
6173
|
showToggle: false,
|
|
@@ -6094,7 +6187,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
6094
6187
|
};
|
|
6095
6188
|
var ItemLabel = ({ value, index }) => {
|
|
6096
6189
|
const elementTitle = value?.title;
|
|
6097
|
-
return /* @__PURE__ */
|
|
6190
|
+
return /* @__PURE__ */ React95.createElement(Stack15, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React95.createElement("span", null, elementTitle), /* @__PURE__ */ React95.createElement(ItemDefaultTab, { index }));
|
|
6098
6191
|
};
|
|
6099
6192
|
var ItemDefaultTab = ({ index }) => {
|
|
6100
6193
|
const { value: defaultItem } = useBoundProp7(numberPropTypeUtil4);
|
|
@@ -6102,18 +6195,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
6102
6195
|
if (!isDefault) {
|
|
6103
6196
|
return null;
|
|
6104
6197
|
}
|
|
6105
|
-
return /* @__PURE__ */
|
|
6198
|
+
return /* @__PURE__ */ React95.createElement(Chip4, { size: "tiny", shape: "rounded", label: __69("Default", "elementor") });
|
|
6106
6199
|
};
|
|
6107
6200
|
var ItemContent = ({ value, index }) => {
|
|
6108
6201
|
if (!value.id) {
|
|
6109
6202
|
return null;
|
|
6110
6203
|
}
|
|
6111
|
-
return /* @__PURE__ */
|
|
6204
|
+
return /* @__PURE__ */ React95.createElement(Stack15, { p: 2, gap: 1.5 }, /* @__PURE__ */ React95.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React95.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: __69("Tabs", "elementor") }, /* @__PURE__ */ React95.createElement(DefaultTabControl, { tabIndex: index })));
|
|
6112
6205
|
};
|
|
6113
6206
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
6114
6207
|
const { value, setValue } = useBoundProp7(numberPropTypeUtil4);
|
|
6115
6208
|
const isDefault = value === tabIndex;
|
|
6116
|
-
return /* @__PURE__ */
|
|
6209
|
+
return /* @__PURE__ */ React95.createElement(Stack15, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React95.createElement(ControlFormLabel3, null, __69("Set as default tab", "elementor")), /* @__PURE__ */ React95.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React95.createElement(
|
|
6117
6210
|
Switch2,
|
|
6118
6211
|
{
|
|
6119
6212
|
size: "small",
|
|
@@ -6131,7 +6224,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
6131
6224
|
var TabLabelControl = ({ elementId }) => {
|
|
6132
6225
|
const editorSettings = useElementEditorSettings2(elementId);
|
|
6133
6226
|
const label = editorSettings?.title ?? "";
|
|
6134
|
-
return /* @__PURE__ */
|
|
6227
|
+
return /* @__PURE__ */ React95.createElement(Stack15, { gap: 1 }, /* @__PURE__ */ React95.createElement(ControlFormLabel3, null, __69("Tab name", "elementor")), /* @__PURE__ */ React95.createElement(
|
|
6135
6228
|
TextField2,
|
|
6136
6229
|
{
|
|
6137
6230
|
size: "tiny",
|
|
@@ -6152,22 +6245,22 @@ var ConditionalTooltip = ({
|
|
|
6152
6245
|
if (!showTooltip) {
|
|
6153
6246
|
return children;
|
|
6154
6247
|
}
|
|
6155
|
-
return /* @__PURE__ */
|
|
6248
|
+
return /* @__PURE__ */ React95.createElement(
|
|
6156
6249
|
Infotip2,
|
|
6157
6250
|
{
|
|
6158
6251
|
arrow: false,
|
|
6159
|
-
content: /* @__PURE__ */
|
|
6252
|
+
content: /* @__PURE__ */ React95.createElement(
|
|
6160
6253
|
Alert4,
|
|
6161
6254
|
{
|
|
6162
6255
|
color: "secondary",
|
|
6163
|
-
icon: /* @__PURE__ */
|
|
6256
|
+
icon: /* @__PURE__ */ React95.createElement(InfoCircleFilledIcon2, { fontSize: "tiny" }),
|
|
6164
6257
|
size: "small",
|
|
6165
6258
|
sx: { width: 288 }
|
|
6166
6259
|
},
|
|
6167
|
-
/* @__PURE__ */
|
|
6260
|
+
/* @__PURE__ */ React95.createElement(Typography5, { variant: "body2" }, __69("To change the default tab, simply set another tab as default.", "elementor"))
|
|
6168
6261
|
)
|
|
6169
6262
|
},
|
|
6170
|
-
/* @__PURE__ */
|
|
6263
|
+
/* @__PURE__ */ React95.createElement("span", null, children)
|
|
6171
6264
|
);
|
|
6172
6265
|
};
|
|
6173
6266
|
|
|
@@ -6193,7 +6286,7 @@ import {
|
|
|
6193
6286
|
import { controlActionsMenu as controlActionsMenu2 } from "@elementor/menus";
|
|
6194
6287
|
|
|
6195
6288
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6196
|
-
import * as
|
|
6289
|
+
import * as React96 from "react";
|
|
6197
6290
|
import { PropKeyProvider as PropKeyProvider4, PropProvider as PropProvider4, useBoundProp as useBoundProp9 } from "@elementor/editor-controls";
|
|
6198
6291
|
import {
|
|
6199
6292
|
backgroundImageOverlayPropTypeUtil
|
|
@@ -6336,24 +6429,24 @@ var useDynamicTag = (tagName) => {
|
|
|
6336
6429
|
};
|
|
6337
6430
|
|
|
6338
6431
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
6339
|
-
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */
|
|
6432
|
+
var BackgroundControlDynamicTagIcon = () => /* @__PURE__ */ React96.createElement(DatabaseIcon, { fontSize: "tiny" });
|
|
6340
6433
|
var BackgroundControlDynamicTagLabel = ({ value }) => {
|
|
6341
6434
|
const context = useBoundProp9(backgroundImageOverlayPropTypeUtil);
|
|
6342
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ React96.createElement(PropProvider4, { ...context, value: value.value }, /* @__PURE__ */ React96.createElement(PropKeyProvider4, { bind: "image" }, /* @__PURE__ */ React96.createElement(Wrapper2, { rawValue: value.value })));
|
|
6343
6436
|
};
|
|
6344
6437
|
var Wrapper2 = ({ rawValue }) => {
|
|
6345
6438
|
const { propType } = useBoundProp9();
|
|
6346
6439
|
const imageOverlayPropType = propType.prop_types["background-image-overlay"];
|
|
6347
|
-
return /* @__PURE__ */
|
|
6440
|
+
return /* @__PURE__ */ React96.createElement(PropProvider4, { propType: imageOverlayPropType.shape.image, value: rawValue, setValue: () => void 0 }, /* @__PURE__ */ React96.createElement(PropKeyProvider4, { bind: "src" }, /* @__PURE__ */ React96.createElement(Content, { rawValue: rawValue.image })));
|
|
6348
6441
|
};
|
|
6349
6442
|
var Content = ({ rawValue }) => {
|
|
6350
6443
|
const src = rawValue.value.src;
|
|
6351
6444
|
const dynamicTag = useDynamicTag(src.value.name || "");
|
|
6352
|
-
return /* @__PURE__ */
|
|
6445
|
+
return /* @__PURE__ */ React96.createElement(React96.Fragment, null, dynamicTag?.label);
|
|
6353
6446
|
};
|
|
6354
6447
|
|
|
6355
6448
|
// src/dynamics/components/dynamic-selection-control.tsx
|
|
6356
|
-
import * as
|
|
6449
|
+
import * as React100 from "react";
|
|
6357
6450
|
import {
|
|
6358
6451
|
ControlFormLabel as ControlFormLabel4,
|
|
6359
6452
|
PropKeyProvider as PropKeyProvider6,
|
|
@@ -6378,7 +6471,7 @@ import {
|
|
|
6378
6471
|
usePopupState as usePopupState2,
|
|
6379
6472
|
useTabs as useTabs2
|
|
6380
6473
|
} from "@elementor/ui";
|
|
6381
|
-
import { __ as
|
|
6474
|
+
import { __ as __71 } from "@wordpress/i18n";
|
|
6382
6475
|
|
|
6383
6476
|
// src/hooks/use-persist-dynamic-value.ts
|
|
6384
6477
|
import { useSessionStorage as useSessionStorage5 } from "@elementor/session";
|
|
@@ -6389,11 +6482,11 @@ var usePersistDynamicValue = (propKey) => {
|
|
|
6389
6482
|
};
|
|
6390
6483
|
|
|
6391
6484
|
// src/dynamics/dynamic-control.tsx
|
|
6392
|
-
import * as
|
|
6485
|
+
import * as React98 from "react";
|
|
6393
6486
|
import { PropKeyProvider as PropKeyProvider5, PropProvider as PropProvider5, useBoundProp as useBoundProp10 } from "@elementor/editor-controls";
|
|
6394
6487
|
|
|
6395
6488
|
// src/dynamics/components/dynamic-conditional-control.tsx
|
|
6396
|
-
import * as
|
|
6489
|
+
import * as React97 from "react";
|
|
6397
6490
|
import { useMemo as useMemo13 } from "react";
|
|
6398
6491
|
import { isDependencyMet as isDependencyMet3 } from "@elementor/editor-props";
|
|
6399
6492
|
var DynamicConditionalControl = ({
|
|
@@ -6435,10 +6528,10 @@ var DynamicConditionalControl = ({
|
|
|
6435
6528
|
return { ...defaults, ...convertedSettings };
|
|
6436
6529
|
}, [defaults, convertedSettings]);
|
|
6437
6530
|
if (!propType?.dependencies?.terms.length) {
|
|
6438
|
-
return /* @__PURE__ */
|
|
6531
|
+
return /* @__PURE__ */ React97.createElement(React97.Fragment, null, children);
|
|
6439
6532
|
}
|
|
6440
6533
|
const isHidden = !isDependencyMet3(propType?.dependencies, effectiveSettings).isMet;
|
|
6441
|
-
return isHidden ? null : /* @__PURE__ */
|
|
6534
|
+
return isHidden ? null : /* @__PURE__ */ React97.createElement(React97.Fragment, null, children);
|
|
6442
6535
|
};
|
|
6443
6536
|
|
|
6444
6537
|
// src/dynamics/dynamic-control.tsx
|
|
@@ -6463,7 +6556,7 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6463
6556
|
});
|
|
6464
6557
|
};
|
|
6465
6558
|
const propType = createTopLevelObjectType({ schema: dynamicTag.props_schema });
|
|
6466
|
-
return /* @__PURE__ */
|
|
6559
|
+
return /* @__PURE__ */ React98.createElement(PropProvider5, { propType, setValue: setDynamicValue, value: { [bind]: dynamicValue } }, /* @__PURE__ */ React98.createElement(PropKeyProvider5, { bind }, /* @__PURE__ */ React98.createElement(
|
|
6467
6560
|
DynamicConditionalControl,
|
|
6468
6561
|
{
|
|
6469
6562
|
propType: dynamicPropType,
|
|
@@ -6475,13 +6568,13 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
6475
6568
|
};
|
|
6476
6569
|
|
|
6477
6570
|
// src/dynamics/components/dynamic-selection.tsx
|
|
6478
|
-
import * as
|
|
6479
|
-
import { Fragment as
|
|
6571
|
+
import * as React99 from "react";
|
|
6572
|
+
import { Fragment as Fragment16, useEffect as useEffect9, useState as useState10 } from "react";
|
|
6480
6573
|
import { trackUpgradePromotionClick, trackViewPromotion, useBoundProp as useBoundProp11 } from "@elementor/editor-controls";
|
|
6481
6574
|
import { CtaButton, PopoverHeader, PopoverMenuList, SearchField, SectionPopoverBody } from "@elementor/editor-ui";
|
|
6482
6575
|
import { DatabaseIcon as DatabaseIcon2 } from "@elementor/icons";
|
|
6483
6576
|
import { Divider as Divider7, Link as Link2, Stack as Stack16, Typography as Typography6, useTheme as useTheme3 } from "@elementor/ui";
|
|
6484
|
-
import { __ as
|
|
6577
|
+
import { __ as __70 } from "@wordpress/i18n";
|
|
6485
6578
|
var SIZE2 = "tiny";
|
|
6486
6579
|
var PROMO_TEXT_WIDTH = 170;
|
|
6487
6580
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
@@ -6528,19 +6621,19 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6528
6621
|
]);
|
|
6529
6622
|
const getPopOverContent = () => {
|
|
6530
6623
|
if (hasNoDynamicTags) {
|
|
6531
|
-
return /* @__PURE__ */
|
|
6624
|
+
return /* @__PURE__ */ React99.createElement(NoDynamicTags, null);
|
|
6532
6625
|
}
|
|
6533
6626
|
if (expired) {
|
|
6534
|
-
return /* @__PURE__ */
|
|
6627
|
+
return /* @__PURE__ */ React99.createElement(ExpiredDynamicTags, null);
|
|
6535
6628
|
}
|
|
6536
|
-
return /* @__PURE__ */
|
|
6629
|
+
return /* @__PURE__ */ React99.createElement(Fragment16, null, /* @__PURE__ */ React99.createElement(
|
|
6537
6630
|
SearchField,
|
|
6538
6631
|
{
|
|
6539
6632
|
value: searchValue,
|
|
6540
6633
|
onSearch: handleSearch,
|
|
6541
|
-
placeholder:
|
|
6634
|
+
placeholder: __70("Search dynamic tags\u2026", "elementor")
|
|
6542
6635
|
}
|
|
6543
|
-
), /* @__PURE__ */
|
|
6636
|
+
), /* @__PURE__ */ React99.createElement(Divider7, null), /* @__PURE__ */ React99.createElement(
|
|
6544
6637
|
PopoverMenuList,
|
|
6545
6638
|
{
|
|
6546
6639
|
items: virtualizedItems,
|
|
@@ -6548,20 +6641,20 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6548
6641
|
onClose: closePopover,
|
|
6549
6642
|
selectedValue: dynamicValue?.name,
|
|
6550
6643
|
itemStyle: (item) => item.type === "item" ? { paddingInlineStart: theme.spacing(3.5) } : {},
|
|
6551
|
-
noResultsComponent: /* @__PURE__ */
|
|
6644
|
+
noResultsComponent: /* @__PURE__ */ React99.createElement(NoResults, { searchValue, onClear: () => setSearchValue("") })
|
|
6552
6645
|
}
|
|
6553
6646
|
));
|
|
6554
6647
|
};
|
|
6555
|
-
return /* @__PURE__ */
|
|
6648
|
+
return /* @__PURE__ */ React99.createElement(SectionPopoverBody, { "aria-label": __70("Dynamic tags", "elementor") }, /* @__PURE__ */ React99.createElement(
|
|
6556
6649
|
PopoverHeader,
|
|
6557
6650
|
{
|
|
6558
|
-
title:
|
|
6651
|
+
title: __70("Dynamic tags", "elementor"),
|
|
6559
6652
|
onClose: closePopover,
|
|
6560
|
-
icon: /* @__PURE__ */
|
|
6653
|
+
icon: /* @__PURE__ */ React99.createElement(DatabaseIcon2, { fontSize: SIZE2 })
|
|
6561
6654
|
}
|
|
6562
6655
|
), getPopOverContent());
|
|
6563
6656
|
};
|
|
6564
|
-
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */
|
|
6657
|
+
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React99.createElement(
|
|
6565
6658
|
Stack16,
|
|
6566
6659
|
{
|
|
6567
6660
|
gap: 1,
|
|
@@ -6572,11 +6665,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React97.createElem
|
|
|
6572
6665
|
color: "text.secondary",
|
|
6573
6666
|
sx: { pb: 3.5 }
|
|
6574
6667
|
},
|
|
6575
|
-
/* @__PURE__ */
|
|
6576
|
-
/* @__PURE__ */
|
|
6577
|
-
/* @__PURE__ */
|
|
6668
|
+
/* @__PURE__ */ React99.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6669
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "subtitle2" }, __70("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React99.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6670
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, __70("Try something else.", "elementor"), /* @__PURE__ */ React99.createElement(Link2, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, __70("Clear & try again", "elementor")))
|
|
6578
6671
|
);
|
|
6579
|
-
var NoDynamicTags = () => /* @__PURE__ */
|
|
6672
|
+
var NoDynamicTags = () => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Divider7, null), /* @__PURE__ */ React99.createElement(
|
|
6580
6673
|
Stack16,
|
|
6581
6674
|
{
|
|
6582
6675
|
gap: 1,
|
|
@@ -6587,10 +6680,10 @@ var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment
|
|
|
6587
6680
|
color: "text.secondary",
|
|
6588
6681
|
sx: { pb: 3.5 }
|
|
6589
6682
|
},
|
|
6590
|
-
/* @__PURE__ */
|
|
6591
|
-
/* @__PURE__ */
|
|
6592
|
-
/* @__PURE__ */
|
|
6593
|
-
/* @__PURE__ */
|
|
6683
|
+
/* @__PURE__ */ React99.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6684
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "subtitle2" }, __70("Streamline your workflow with dynamic tags", "elementor")),
|
|
6685
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __70("Upgrade now to display your content dynamically.", "elementor")),
|
|
6686
|
+
/* @__PURE__ */ React99.createElement(
|
|
6594
6687
|
CtaButton,
|
|
6595
6688
|
{
|
|
6596
6689
|
size: "small",
|
|
@@ -6599,7 +6692,7 @@ var NoDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fragment
|
|
|
6599
6692
|
}
|
|
6600
6693
|
)
|
|
6601
6694
|
));
|
|
6602
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */
|
|
6695
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React99.createElement(React99.Fragment, null, /* @__PURE__ */ React99.createElement(Divider7, null), /* @__PURE__ */ React99.createElement(
|
|
6603
6696
|
Stack16,
|
|
6604
6697
|
{
|
|
6605
6698
|
gap: 1,
|
|
@@ -6610,16 +6703,16 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React97.createElement(React97.Fra
|
|
|
6610
6703
|
color: "text.secondary",
|
|
6611
6704
|
sx: { pb: 3.5 }
|
|
6612
6705
|
},
|
|
6613
|
-
/* @__PURE__ */
|
|
6614
|
-
/* @__PURE__ */
|
|
6615
|
-
/* @__PURE__ */
|
|
6616
|
-
/* @__PURE__ */
|
|
6706
|
+
/* @__PURE__ */ React99.createElement(DatabaseIcon2, { fontSize: "large" }),
|
|
6707
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "subtitle2" }, __70("Unlock your Dynamic tags again", "elementor")),
|
|
6708
|
+
/* @__PURE__ */ React99.createElement(Typography6, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, __70("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6709
|
+
/* @__PURE__ */ React99.createElement(
|
|
6617
6710
|
CtaButton,
|
|
6618
6711
|
{
|
|
6619
6712
|
size: "small",
|
|
6620
6713
|
href: RENEW_DYNAMIC_TAGS_URL,
|
|
6621
6714
|
onClick: () => trackUpgradePromotionClick({ target_name: "dynamic_tags" }),
|
|
6622
|
-
children:
|
|
6715
|
+
children: __70("Renew Now", "elementor")
|
|
6623
6716
|
}
|
|
6624
6717
|
)
|
|
6625
6718
|
));
|
|
@@ -6656,7 +6749,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6656
6749
|
const { name: tagName = "" } = value;
|
|
6657
6750
|
const dynamicTag = useDynamicTag(tagName);
|
|
6658
6751
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
6659
|
-
return /* @__PURE__ */
|
|
6752
|
+
return /* @__PURE__ */ React100.createElement(PropProvider6, { propType: originalPropType, value: { [bind]: null }, setValue: setAnyValue }, /* @__PURE__ */ React100.createElement(PropKeyProvider6, { bind }, /* @__PURE__ */ React100.createElement(OriginalControl, { ...props })));
|
|
6660
6753
|
}
|
|
6661
6754
|
const removeDynamicTag = () => {
|
|
6662
6755
|
setAnyValue(propValueFromHistory ?? null);
|
|
@@ -6664,25 +6757,25 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6664
6757
|
if (!dynamicTag) {
|
|
6665
6758
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6666
6759
|
}
|
|
6667
|
-
return /* @__PURE__ */
|
|
6760
|
+
return /* @__PURE__ */ React100.createElement(Box8, null, /* @__PURE__ */ React100.createElement(
|
|
6668
6761
|
Tag,
|
|
6669
6762
|
{
|
|
6670
6763
|
fullWidth: true,
|
|
6671
6764
|
showActionsOnHover: true,
|
|
6672
6765
|
label: dynamicTag.label,
|
|
6673
|
-
startIcon: /* @__PURE__ */
|
|
6766
|
+
startIcon: /* @__PURE__ */ React100.createElement(DatabaseIcon3, { fontSize: SIZE3 }),
|
|
6674
6767
|
...bindTrigger2(selectionPopoverState),
|
|
6675
|
-
actions: /* @__PURE__ */
|
|
6768
|
+
actions: /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React100.createElement(
|
|
6676
6769
|
IconButton2,
|
|
6677
6770
|
{
|
|
6678
6771
|
size: SIZE3,
|
|
6679
6772
|
onClick: removeDynamicTag,
|
|
6680
|
-
"aria-label":
|
|
6773
|
+
"aria-label": __71("Remove dynamic value", "elementor")
|
|
6681
6774
|
},
|
|
6682
|
-
/* @__PURE__ */
|
|
6775
|
+
/* @__PURE__ */ React100.createElement(XIcon, { fontSize: SIZE3 })
|
|
6683
6776
|
))
|
|
6684
6777
|
}
|
|
6685
|
-
), /* @__PURE__ */
|
|
6778
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6686
6779
|
Popover,
|
|
6687
6780
|
{
|
|
6688
6781
|
disablePortal: true,
|
|
@@ -6694,7 +6787,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6694
6787
|
},
|
|
6695
6788
|
...bindPopover(selectionPopoverState)
|
|
6696
6789
|
},
|
|
6697
|
-
/* @__PURE__ */
|
|
6790
|
+
/* @__PURE__ */ React100.createElement(SectionPopoverBody2, { "aria-label": __71("Dynamic tags", "elementor") }, /* @__PURE__ */ React100.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6698
6791
|
));
|
|
6699
6792
|
};
|
|
6700
6793
|
var DynamicSettingsPopover = ({
|
|
@@ -6706,16 +6799,16 @@ var DynamicSettingsPopover = ({
|
|
|
6706
6799
|
if (!hasDynamicSettings) {
|
|
6707
6800
|
return null;
|
|
6708
6801
|
}
|
|
6709
|
-
return /* @__PURE__ */
|
|
6802
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
6710
6803
|
IconButton2,
|
|
6711
6804
|
{
|
|
6712
6805
|
size: SIZE3,
|
|
6713
6806
|
disabled,
|
|
6714
6807
|
...!disabled && bindTrigger2(popupState),
|
|
6715
|
-
"aria-label":
|
|
6808
|
+
"aria-label": __71("Dynamic settings", "elementor")
|
|
6716
6809
|
},
|
|
6717
|
-
/* @__PURE__ */
|
|
6718
|
-
), /* @__PURE__ */
|
|
6810
|
+
/* @__PURE__ */ React100.createElement(SettingsIcon, { fontSize: SIZE3 })
|
|
6811
|
+
), /* @__PURE__ */ React100.createElement(
|
|
6719
6812
|
Popover,
|
|
6720
6813
|
{
|
|
6721
6814
|
disablePortal: true,
|
|
@@ -6727,14 +6820,14 @@ var DynamicSettingsPopover = ({
|
|
|
6727
6820
|
},
|
|
6728
6821
|
...bindPopover(popupState)
|
|
6729
6822
|
},
|
|
6730
|
-
/* @__PURE__ */
|
|
6823
|
+
/* @__PURE__ */ React100.createElement(SectionPopoverBody2, { "aria-label": __71("Dynamic settings", "elementor") }, /* @__PURE__ */ React100.createElement(
|
|
6731
6824
|
PopoverHeader2,
|
|
6732
6825
|
{
|
|
6733
6826
|
title: dynamicTag.label,
|
|
6734
6827
|
onClose: popupState.close,
|
|
6735
|
-
icon: /* @__PURE__ */
|
|
6828
|
+
icon: /* @__PURE__ */ React100.createElement(DatabaseIcon3, { fontSize: SIZE3 })
|
|
6736
6829
|
}
|
|
6737
|
-
), /* @__PURE__ */
|
|
6830
|
+
), /* @__PURE__ */ React100.createElement(DynamicSettings, { controls: dynamicTag.atomic_controls, tagName: dynamicTag.name }))
|
|
6738
6831
|
));
|
|
6739
6832
|
};
|
|
6740
6833
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
@@ -6745,9 +6838,9 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6745
6838
|
}
|
|
6746
6839
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6747
6840
|
const singleTab = tabs[0];
|
|
6748
|
-
return /* @__PURE__ */
|
|
6841
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(Divider8, null), /* @__PURE__ */ React100.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6749
6842
|
}
|
|
6750
|
-
return /* @__PURE__ */
|
|
6843
|
+
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React100.createElement(Tabs2, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React100.createElement(
|
|
6751
6844
|
Tab2,
|
|
6752
6845
|
{
|
|
6753
6846
|
key: index,
|
|
@@ -6755,15 +6848,15 @@ var DynamicSettings = ({ controls, tagName }) => {
|
|
|
6755
6848
|
sx: { px: 1, py: 0.5 },
|
|
6756
6849
|
...getTabProps(index)
|
|
6757
6850
|
}
|
|
6758
|
-
))), /* @__PURE__ */
|
|
6759
|
-
return /* @__PURE__ */
|
|
6851
|
+
))), /* @__PURE__ */ React100.createElement(Divider8, null), tabs.map(({ value }, index) => {
|
|
6852
|
+
return /* @__PURE__ */ React100.createElement(
|
|
6760
6853
|
TabPanel2,
|
|
6761
6854
|
{
|
|
6762
6855
|
key: index,
|
|
6763
6856
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
6764
6857
|
...getTabPanelProps(index)
|
|
6765
6858
|
},
|
|
6766
|
-
/* @__PURE__ */
|
|
6859
|
+
/* @__PURE__ */ React100.createElement(ControlsItemsStack, { items: value.items })
|
|
6767
6860
|
);
|
|
6768
6861
|
}));
|
|
6769
6862
|
};
|
|
@@ -6805,11 +6898,11 @@ var Control2 = ({ control }) => {
|
|
|
6805
6898
|
display: "grid",
|
|
6806
6899
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6807
6900
|
} : {};
|
|
6808
|
-
return /* @__PURE__ */
|
|
6901
|
+
return /* @__PURE__ */ React100.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React100.createElement(Grid8, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React100.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React100.createElement(ControlFormLabel4, null, control.label)) : null, /* @__PURE__ */ React100.createElement(Grid8, { item: true, xs: 12 }, /* @__PURE__ */ React100.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6809
6902
|
};
|
|
6810
6903
|
function ControlsItemsStack({ items: items3 }) {
|
|
6811
|
-
return /* @__PURE__ */
|
|
6812
|
-
(item) => item.type === "control" ? /* @__PURE__ */
|
|
6904
|
+
return /* @__PURE__ */ React100.createElement(Stack17, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6905
|
+
(item) => item.type === "control" ? /* @__PURE__ */ React100.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6813
6906
|
));
|
|
6814
6907
|
}
|
|
6815
6908
|
|
|
@@ -6866,18 +6959,18 @@ function getDynamicValue(name, settings, renderPostId) {
|
|
|
6866
6959
|
}
|
|
6867
6960
|
|
|
6868
6961
|
// src/dynamics/hooks/use-prop-dynamic-action.tsx
|
|
6869
|
-
import * as
|
|
6962
|
+
import * as React101 from "react";
|
|
6870
6963
|
import { useBoundProp as useBoundProp13 } from "@elementor/editor-controls";
|
|
6871
6964
|
import { DatabaseIcon as DatabaseIcon4 } from "@elementor/icons";
|
|
6872
|
-
import { __ as
|
|
6965
|
+
import { __ as __72 } from "@wordpress/i18n";
|
|
6873
6966
|
var usePropDynamicAction = () => {
|
|
6874
6967
|
const { propType } = useBoundProp13();
|
|
6875
6968
|
const visible = !!propType && supportsDynamic(propType);
|
|
6876
6969
|
return {
|
|
6877
6970
|
visible,
|
|
6878
6971
|
icon: DatabaseIcon4,
|
|
6879
|
-
title:
|
|
6880
|
-
content: ({ close }) => /* @__PURE__ */
|
|
6972
|
+
title: __72("Dynamic tags", "elementor"),
|
|
6973
|
+
content: ({ close }) => /* @__PURE__ */ React101.createElement(DynamicSelection, { close })
|
|
6881
6974
|
};
|
|
6882
6975
|
};
|
|
6883
6976
|
|
|
@@ -6912,7 +7005,7 @@ import { useBoundProp as useBoundProp14 } from "@elementor/editor-controls";
|
|
|
6912
7005
|
import { hasVariable as hasVariable2 } from "@elementor/editor-variables";
|
|
6913
7006
|
import { BrushBigIcon } from "@elementor/icons";
|
|
6914
7007
|
import { controlActionsMenu as controlActionsMenu3 } from "@elementor/menus";
|
|
6915
|
-
import { __ as
|
|
7008
|
+
import { __ as __73 } from "@wordpress/i18n";
|
|
6916
7009
|
|
|
6917
7010
|
// src/utils/is-equal.ts
|
|
6918
7011
|
function isEqual(a, b) {
|
|
@@ -6988,21 +7081,21 @@ function useResetStyleValueProps() {
|
|
|
6988
7081
|
const visible = calculateVisibility();
|
|
6989
7082
|
return {
|
|
6990
7083
|
visible,
|
|
6991
|
-
title:
|
|
7084
|
+
title: __73("Clear", "elementor"),
|
|
6992
7085
|
icon: BrushBigIcon,
|
|
6993
7086
|
onClick: () => resetValue()
|
|
6994
7087
|
};
|
|
6995
7088
|
}
|
|
6996
7089
|
|
|
6997
7090
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
6998
|
-
import * as
|
|
7091
|
+
import * as React107 from "react";
|
|
6999
7092
|
import { useBoundProp as useBoundProp15 } from "@elementor/editor-controls";
|
|
7000
7093
|
import { isEmpty as isEmpty3 } from "@elementor/editor-props";
|
|
7001
7094
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY4 } from "@elementor/editor-styles-repository";
|
|
7002
|
-
import { __ as
|
|
7095
|
+
import { __ as __77 } from "@wordpress/i18n";
|
|
7003
7096
|
|
|
7004
7097
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7005
|
-
import * as
|
|
7098
|
+
import * as React106 from "react";
|
|
7006
7099
|
import { useMemo as useMemo14, useRef as useRef20, useState as useState12 } from "react";
|
|
7007
7100
|
import {
|
|
7008
7101
|
createPropsResolver as createPropsResolver2,
|
|
@@ -7020,7 +7113,7 @@ import {
|
|
|
7020
7113
|
Stack as Stack18,
|
|
7021
7114
|
Tooltip as Tooltip7
|
|
7022
7115
|
} from "@elementor/ui";
|
|
7023
|
-
import { __ as
|
|
7116
|
+
import { __ as __76 } from "@wordpress/i18n";
|
|
7024
7117
|
|
|
7025
7118
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
7026
7119
|
import { isValidElement, useEffect as useEffect10, useState as useState11 } from "react";
|
|
@@ -7030,7 +7123,7 @@ import {
|
|
|
7030
7123
|
isPseudoState
|
|
7031
7124
|
} from "@elementor/editor-styles";
|
|
7032
7125
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY2 } from "@elementor/editor-styles-repository";
|
|
7033
|
-
import { __ as
|
|
7126
|
+
import { __ as __74 } from "@wordpress/i18n";
|
|
7034
7127
|
var MAXIMUM_ITEMS = 2;
|
|
7035
7128
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
7036
7129
|
const [items3, setItems] = useState11([]);
|
|
@@ -7041,7 +7134,7 @@ var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
|
7041
7134
|
);
|
|
7042
7135
|
const validItems = normalizedItems.map((item) => ({
|
|
7043
7136
|
...item,
|
|
7044
|
-
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel :
|
|
7137
|
+
displayLabel: ELEMENTS_BASE_STYLES_PROVIDER_KEY2 !== item.provider ? item.displayLabel : __74("Base", "elementor")
|
|
7045
7138
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
7046
7139
|
setItems(validItems);
|
|
7047
7140
|
})();
|
|
@@ -7098,7 +7191,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
7098
7191
|
};
|
|
7099
7192
|
|
|
7100
7193
|
// src/styles-inheritance/components/infotip/breakpoint-icon.tsx
|
|
7101
|
-
import * as
|
|
7194
|
+
import * as React102 from "react";
|
|
7102
7195
|
import { useBreakpoints } from "@elementor/editor-responsive";
|
|
7103
7196
|
import {
|
|
7104
7197
|
DesktopIcon,
|
|
@@ -7129,20 +7222,20 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
7129
7222
|
return null;
|
|
7130
7223
|
}
|
|
7131
7224
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
7132
|
-
return /* @__PURE__ */
|
|
7225
|
+
return /* @__PURE__ */ React102.createElement(Tooltip4, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React102.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
7133
7226
|
};
|
|
7134
7227
|
|
|
7135
7228
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
7136
|
-
import * as
|
|
7229
|
+
import * as React103 from "react";
|
|
7137
7230
|
import { ELEMENTS_BASE_STYLES_PROVIDER_KEY as ELEMENTS_BASE_STYLES_PROVIDER_KEY3 } from "@elementor/editor-styles-repository";
|
|
7138
7231
|
import { InfoCircleIcon as InfoCircleIcon2 } from "@elementor/icons";
|
|
7139
7232
|
import { Chip as Chip5, Tooltip as Tooltip5 } from "@elementor/ui";
|
|
7140
|
-
import { __ as
|
|
7233
|
+
import { __ as __75 } from "@wordpress/i18n";
|
|
7141
7234
|
var SIZE5 = "tiny";
|
|
7142
7235
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
7143
7236
|
const isBaseStyle = provider === ELEMENTS_BASE_STYLES_PROVIDER_KEY3;
|
|
7144
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */
|
|
7145
|
-
return /* @__PURE__ */
|
|
7237
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React103.createElement(Tooltip5, { title: __75("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React103.createElement(InfoCircleIcon2, { fontSize: SIZE5 })) : void 0;
|
|
7238
|
+
return /* @__PURE__ */ React103.createElement(
|
|
7146
7239
|
Chip5,
|
|
7147
7240
|
{
|
|
7148
7241
|
label: displayLabel,
|
|
@@ -7168,10 +7261,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
7168
7261
|
};
|
|
7169
7262
|
|
|
7170
7263
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
7171
|
-
import * as
|
|
7264
|
+
import * as React104 from "react";
|
|
7172
7265
|
import { Tooltip as Tooltip6, Typography as Typography7 } from "@elementor/ui";
|
|
7173
7266
|
var ValueComponent = ({ index, value }) => {
|
|
7174
|
-
return /* @__PURE__ */
|
|
7267
|
+
return /* @__PURE__ */ React104.createElement(Tooltip6, { title: value, placement: "top" }, /* @__PURE__ */ React104.createElement(
|
|
7175
7268
|
Typography7,
|
|
7176
7269
|
{
|
|
7177
7270
|
variant: "caption",
|
|
@@ -7193,9 +7286,9 @@ var ValueComponent = ({ index, value }) => {
|
|
|
7193
7286
|
};
|
|
7194
7287
|
|
|
7195
7288
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
7196
|
-
import * as
|
|
7289
|
+
import * as React105 from "react";
|
|
7197
7290
|
import { Box as Box9 } from "@elementor/ui";
|
|
7198
|
-
var ActionIcons = () => /* @__PURE__ */
|
|
7291
|
+
var ActionIcons = () => /* @__PURE__ */ React105.createElement(Box9, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
7199
7292
|
|
|
7200
7293
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
7201
7294
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -7231,7 +7324,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7231
7324
|
});
|
|
7232
7325
|
}, [key, propType]);
|
|
7233
7326
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
7234
|
-
const infotipContent = /* @__PURE__ */
|
|
7327
|
+
const infotipContent = /* @__PURE__ */ React106.createElement(ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React106.createElement(
|
|
7235
7328
|
Card,
|
|
7236
7329
|
{
|
|
7237
7330
|
elevation: 0,
|
|
@@ -7244,7 +7337,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7244
7337
|
flexDirection: "column"
|
|
7245
7338
|
}
|
|
7246
7339
|
},
|
|
7247
|
-
/* @__PURE__ */
|
|
7340
|
+
/* @__PURE__ */ React106.createElement(
|
|
7248
7341
|
Box10,
|
|
7249
7342
|
{
|
|
7250
7343
|
sx: {
|
|
@@ -7254,9 +7347,9 @@ var StylesInheritanceInfotip = ({
|
|
|
7254
7347
|
backgroundColor: "background.paper"
|
|
7255
7348
|
}
|
|
7256
7349
|
},
|
|
7257
|
-
/* @__PURE__ */
|
|
7350
|
+
/* @__PURE__ */ React106.createElement(PopoverHeader3, { title: __76("Style origin", "elementor"), onClose: closeInfotip })
|
|
7258
7351
|
),
|
|
7259
|
-
/* @__PURE__ */
|
|
7352
|
+
/* @__PURE__ */ React106.createElement(
|
|
7260
7353
|
CardContent,
|
|
7261
7354
|
{
|
|
7262
7355
|
sx: {
|
|
@@ -7270,39 +7363,39 @@ var StylesInheritanceInfotip = ({
|
|
|
7270
7363
|
}
|
|
7271
7364
|
}
|
|
7272
7365
|
},
|
|
7273
|
-
/* @__PURE__ */
|
|
7274
|
-
return /* @__PURE__ */
|
|
7366
|
+
/* @__PURE__ */ React106.createElement(Stack18, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
7367
|
+
return /* @__PURE__ */ React106.createElement(
|
|
7275
7368
|
Box10,
|
|
7276
7369
|
{
|
|
7277
7370
|
key: item.id,
|
|
7278
7371
|
display: "flex",
|
|
7279
7372
|
gap: 0.5,
|
|
7280
7373
|
role: "listitem",
|
|
7281
|
-
"aria-label":
|
|
7374
|
+
"aria-label": __76("Inheritance item: %s", "elementor").replace(
|
|
7282
7375
|
"%s",
|
|
7283
7376
|
item.displayLabel
|
|
7284
7377
|
)
|
|
7285
7378
|
},
|
|
7286
|
-
/* @__PURE__ */
|
|
7379
|
+
/* @__PURE__ */ React106.createElement(
|
|
7287
7380
|
Box10,
|
|
7288
7381
|
{
|
|
7289
7382
|
display: "flex",
|
|
7290
7383
|
gap: 0.5,
|
|
7291
7384
|
sx: { flexWrap: "wrap", width: "100%", alignItems: "flex-start" }
|
|
7292
7385
|
},
|
|
7293
|
-
/* @__PURE__ */
|
|
7294
|
-
/* @__PURE__ */
|
|
7295
|
-
/* @__PURE__ */
|
|
7386
|
+
/* @__PURE__ */ React106.createElement(BreakpointIcon, { breakpoint: item.breakpoint }),
|
|
7387
|
+
/* @__PURE__ */ React106.createElement(LabelChip, { displayLabel: item.displayLabel, provider: item.provider }),
|
|
7388
|
+
/* @__PURE__ */ React106.createElement(ValueComponent, { index, value: item.value })
|
|
7296
7389
|
),
|
|
7297
|
-
/* @__PURE__ */
|
|
7390
|
+
/* @__PURE__ */ React106.createElement(ActionIcons, null)
|
|
7298
7391
|
);
|
|
7299
7392
|
}))
|
|
7300
7393
|
)
|
|
7301
7394
|
));
|
|
7302
7395
|
if (isDisabled) {
|
|
7303
|
-
return /* @__PURE__ */
|
|
7396
|
+
return /* @__PURE__ */ React106.createElement(Box10, { sx: { display: "inline-flex" } }, children);
|
|
7304
7397
|
}
|
|
7305
|
-
return /* @__PURE__ */
|
|
7398
|
+
return /* @__PURE__ */ React106.createElement(Box10, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React106.createElement(
|
|
7306
7399
|
TooltipOrInfotip,
|
|
7307
7400
|
{
|
|
7308
7401
|
showInfotip,
|
|
@@ -7310,7 +7403,7 @@ var StylesInheritanceInfotip = ({
|
|
|
7310
7403
|
infotipContent,
|
|
7311
7404
|
isDisabled
|
|
7312
7405
|
},
|
|
7313
|
-
/* @__PURE__ */
|
|
7406
|
+
/* @__PURE__ */ React106.createElement(
|
|
7314
7407
|
IconButton3,
|
|
7315
7408
|
{
|
|
7316
7409
|
onClick: toggleInfotip,
|
|
@@ -7330,10 +7423,10 @@ function TooltipOrInfotip({
|
|
|
7330
7423
|
isDisabled
|
|
7331
7424
|
}) {
|
|
7332
7425
|
if (isDisabled) {
|
|
7333
|
-
return /* @__PURE__ */
|
|
7426
|
+
return /* @__PURE__ */ React106.createElement(Box10, { sx: { display: "inline-flex" } }, children);
|
|
7334
7427
|
}
|
|
7335
7428
|
if (showInfotip) {
|
|
7336
|
-
return /* @__PURE__ */
|
|
7429
|
+
return /* @__PURE__ */ React106.createElement(React106.Fragment, null, /* @__PURE__ */ React106.createElement(
|
|
7337
7430
|
Backdrop,
|
|
7338
7431
|
{
|
|
7339
7432
|
open: showInfotip,
|
|
@@ -7343,7 +7436,7 @@ function TooltipOrInfotip({
|
|
|
7343
7436
|
zIndex: (theme) => theme.zIndex.modal - 1
|
|
7344
7437
|
}
|
|
7345
7438
|
}
|
|
7346
|
-
), /* @__PURE__ */
|
|
7439
|
+
), /* @__PURE__ */ React106.createElement(
|
|
7347
7440
|
Infotip3,
|
|
7348
7441
|
{
|
|
7349
7442
|
placement: "top-end",
|
|
@@ -7355,7 +7448,7 @@ function TooltipOrInfotip({
|
|
|
7355
7448
|
children
|
|
7356
7449
|
));
|
|
7357
7450
|
}
|
|
7358
|
-
return /* @__PURE__ */
|
|
7451
|
+
return /* @__PURE__ */ React106.createElement(Tooltip7, { title: __76("Style origin", "elementor"), placement: "top" }, children);
|
|
7359
7452
|
}
|
|
7360
7453
|
|
|
7361
7454
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -7368,7 +7461,7 @@ var StylesInheritanceIndicator = ({
|
|
|
7368
7461
|
if (!path || !inheritanceChain.length) {
|
|
7369
7462
|
return null;
|
|
7370
7463
|
}
|
|
7371
|
-
return /* @__PURE__ */
|
|
7464
|
+
return /* @__PURE__ */ React107.createElement(Indicator, { inheritanceChain, path, propType });
|
|
7372
7465
|
};
|
|
7373
7466
|
var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
7374
7467
|
const { id: currentStyleId, provider: currentStyleProvider, meta: currentStyleMeta } = useStyle();
|
|
@@ -7384,7 +7477,7 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7384
7477
|
getColor: isFinalValue && currentStyleProvider ? getStylesProviderThemeColor(currentStyleProvider.getKey()) : void 0,
|
|
7385
7478
|
isOverridden: hasValue && !isFinalValue ? true : void 0
|
|
7386
7479
|
};
|
|
7387
|
-
return /* @__PURE__ */
|
|
7480
|
+
return /* @__PURE__ */ React107.createElement(
|
|
7388
7481
|
StylesInheritanceInfotip,
|
|
7389
7482
|
{
|
|
7390
7483
|
inheritanceChain,
|
|
@@ -7393,17 +7486,17 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
7393
7486
|
label,
|
|
7394
7487
|
isDisabled
|
|
7395
7488
|
},
|
|
7396
|
-
/* @__PURE__ */
|
|
7489
|
+
/* @__PURE__ */ React107.createElement(StyleIndicator, { ...styleIndicatorProps })
|
|
7397
7490
|
);
|
|
7398
7491
|
};
|
|
7399
7492
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
7400
7493
|
if (isFinalValue) {
|
|
7401
|
-
return
|
|
7494
|
+
return __77("This is the final value", "elementor");
|
|
7402
7495
|
}
|
|
7403
7496
|
if (hasValue) {
|
|
7404
|
-
return
|
|
7497
|
+
return __77("This value is overridden by another style", "elementor");
|
|
7405
7498
|
}
|
|
7406
|
-
return
|
|
7499
|
+
return __77("This has value from another style", "elementor");
|
|
7407
7500
|
};
|
|
7408
7501
|
|
|
7409
7502
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -7428,7 +7521,7 @@ var excludePropTypeTransformers = /* @__PURE__ */ new Set([
|
|
|
7428
7521
|
]);
|
|
7429
7522
|
|
|
7430
7523
|
// src/styles-inheritance/transformers/array-transformer.tsx
|
|
7431
|
-
import * as
|
|
7524
|
+
import * as React108 from "react";
|
|
7432
7525
|
import { createTransformer as createTransformer2 } from "@elementor/editor-canvas";
|
|
7433
7526
|
var arrayTransformer = createTransformer2((values) => {
|
|
7434
7527
|
if (!values || values.length === 0) {
|
|
@@ -7438,16 +7531,16 @@ var arrayTransformer = createTransformer2((values) => {
|
|
|
7438
7531
|
if (allStrings) {
|
|
7439
7532
|
return values.join(" ");
|
|
7440
7533
|
}
|
|
7441
|
-
return /* @__PURE__ */
|
|
7534
|
+
return /* @__PURE__ */ React108.createElement(React108.Fragment, null, values.map((item, index) => /* @__PURE__ */ React108.createElement(React108.Fragment, { key: index }, index > 0 && " ", item)));
|
|
7442
7535
|
});
|
|
7443
7536
|
|
|
7444
7537
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
7445
|
-
import * as
|
|
7538
|
+
import * as React109 from "react";
|
|
7446
7539
|
import { createTransformer as createTransformer3 } from "@elementor/editor-canvas";
|
|
7447
7540
|
import { Stack as Stack19, styled as styled7, UnstableColorIndicator } from "@elementor/ui";
|
|
7448
|
-
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */
|
|
7541
|
+
var backgroundColorOverlayTransformer = createTransformer3((value) => /* @__PURE__ */ React109.createElement(Stack19, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React109.createElement(ItemLabelColor, { value })));
|
|
7449
7542
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
7450
|
-
return /* @__PURE__ */
|
|
7543
|
+
return /* @__PURE__ */ React109.createElement("span", null, color);
|
|
7451
7544
|
};
|
|
7452
7545
|
var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) => ({
|
|
7453
7546
|
width: "1em",
|
|
@@ -7458,20 +7551,20 @@ var StyledUnstableColorIndicator = styled7(UnstableColorIndicator)(({ theme }) =
|
|
|
7458
7551
|
}));
|
|
7459
7552
|
|
|
7460
7553
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
7461
|
-
import * as
|
|
7554
|
+
import * as React110 from "react";
|
|
7462
7555
|
import { createTransformer as createTransformer4 } from "@elementor/editor-canvas";
|
|
7463
7556
|
import { Stack as Stack20 } from "@elementor/ui";
|
|
7464
|
-
import { __ as
|
|
7465
|
-
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */
|
|
7557
|
+
import { __ as __78 } from "@wordpress/i18n";
|
|
7558
|
+
var backgroundGradientOverlayTransformer = createTransformer4((value) => /* @__PURE__ */ React110.createElement(Stack20, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React110.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React110.createElement(ItemLabelGradient, { value })));
|
|
7466
7559
|
var ItemIconGradient = ({ value }) => {
|
|
7467
7560
|
const gradient = getGradientValue(value);
|
|
7468
|
-
return /* @__PURE__ */
|
|
7561
|
+
return /* @__PURE__ */ React110.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
7469
7562
|
};
|
|
7470
7563
|
var ItemLabelGradient = ({ value }) => {
|
|
7471
7564
|
if (value.type === "linear") {
|
|
7472
|
-
return /* @__PURE__ */
|
|
7565
|
+
return /* @__PURE__ */ React110.createElement("span", null, __78("Linear gradient", "elementor"));
|
|
7473
7566
|
}
|
|
7474
|
-
return /* @__PURE__ */
|
|
7567
|
+
return /* @__PURE__ */ React110.createElement("span", null, __78("Radial gradient", "elementor"));
|
|
7475
7568
|
};
|
|
7476
7569
|
var getGradientValue = (gradient) => {
|
|
7477
7570
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -7482,15 +7575,15 @@ var getGradientValue = (gradient) => {
|
|
|
7482
7575
|
};
|
|
7483
7576
|
|
|
7484
7577
|
// src/styles-inheritance/transformers/background-image-overlay-transformer.tsx
|
|
7485
|
-
import * as
|
|
7578
|
+
import * as React111 from "react";
|
|
7486
7579
|
import { createTransformer as createTransformer5 } from "@elementor/editor-canvas";
|
|
7487
7580
|
import { EllipsisWithTooltip as EllipsisWithTooltip2 } from "@elementor/editor-ui";
|
|
7488
7581
|
import { CardMedia, Stack as Stack21 } from "@elementor/ui";
|
|
7489
7582
|
import { useWpMediaAttachment } from "@elementor/wp-media";
|
|
7490
|
-
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */
|
|
7583
|
+
var backgroundImageOverlayTransformer = createTransformer5((value) => /* @__PURE__ */ React111.createElement(Stack21, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React111.createElement(ItemIconImage, { value }), /* @__PURE__ */ React111.createElement(ItemLabelImage, { value })));
|
|
7491
7584
|
var ItemIconImage = ({ value }) => {
|
|
7492
7585
|
const { imageUrl } = useImage(value);
|
|
7493
|
-
return /* @__PURE__ */
|
|
7586
|
+
return /* @__PURE__ */ React111.createElement(
|
|
7494
7587
|
CardMedia,
|
|
7495
7588
|
{
|
|
7496
7589
|
image: imageUrl,
|
|
@@ -7506,7 +7599,7 @@ var ItemIconImage = ({ value }) => {
|
|
|
7506
7599
|
};
|
|
7507
7600
|
var ItemLabelImage = ({ value }) => {
|
|
7508
7601
|
const { imageTitle } = useImage(value);
|
|
7509
|
-
return /* @__PURE__ */
|
|
7602
|
+
return /* @__PURE__ */ React111.createElement(EllipsisWithTooltip2, { title: imageTitle }, /* @__PURE__ */ React111.createElement("span", null, imageTitle));
|
|
7510
7603
|
};
|
|
7511
7604
|
var useImage = (image) => {
|
|
7512
7605
|
let imageTitle, imageUrl = null;
|
|
@@ -7531,7 +7624,7 @@ var getFileExtensionFromFilename = (filename) => {
|
|
|
7531
7624
|
};
|
|
7532
7625
|
|
|
7533
7626
|
// src/styles-inheritance/transformers/box-shadow-transformer.tsx
|
|
7534
|
-
import * as
|
|
7627
|
+
import * as React112 from "react";
|
|
7535
7628
|
import { createTransformer as createTransformer6 } from "@elementor/editor-canvas";
|
|
7536
7629
|
var boxShadowTransformer = createTransformer6((value) => {
|
|
7537
7630
|
if (!value) {
|
|
@@ -7541,11 +7634,11 @@ var boxShadowTransformer = createTransformer6((value) => {
|
|
|
7541
7634
|
const colorValue = color || "#000000";
|
|
7542
7635
|
const sizes = [hOffset || "0px", vOffset || "0px", blur || "10px", spread || "0px"].join(" ");
|
|
7543
7636
|
const positionValue = position || "outset";
|
|
7544
|
-
return /* @__PURE__ */
|
|
7637
|
+
return /* @__PURE__ */ React112.createElement(React112.Fragment, null, colorValue, " ", positionValue, ", ", sizes);
|
|
7545
7638
|
});
|
|
7546
7639
|
|
|
7547
7640
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7548
|
-
import * as
|
|
7641
|
+
import * as React113 from "react";
|
|
7549
7642
|
import { createTransformer as createTransformer7 } from "@elementor/editor-canvas";
|
|
7550
7643
|
import { Stack as Stack22, styled as styled8, UnstableColorIndicator as UnstableColorIndicator2 } from "@elementor/ui";
|
|
7551
7644
|
function isValidCSSColor(value) {
|
|
@@ -7565,7 +7658,7 @@ var colorTransformer = createTransformer7((value) => {
|
|
|
7565
7658
|
if (!isValidCSSColor(value)) {
|
|
7566
7659
|
return value;
|
|
7567
7660
|
}
|
|
7568
|
-
return /* @__PURE__ */
|
|
7661
|
+
return /* @__PURE__ */ React113.createElement(Stack22, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React113.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React113.createElement("span", null, value));
|
|
7569
7662
|
});
|
|
7570
7663
|
|
|
7571
7664
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|
|
@@ -7655,17 +7748,27 @@ var blockV1Panel = () => {
|
|
|
7655
7748
|
};
|
|
7656
7749
|
export {
|
|
7657
7750
|
Control as BaseControl,
|
|
7751
|
+
ClassesPropProvider,
|
|
7658
7752
|
ControlLabel,
|
|
7659
7753
|
ControlTypeContainer,
|
|
7754
|
+
CreatableAutocomplete,
|
|
7660
7755
|
CustomCssIndicator,
|
|
7756
|
+
DEFAULT_PSEUDO_STATES,
|
|
7661
7757
|
EditingPanelTabs,
|
|
7662
7758
|
ElementProvider,
|
|
7663
7759
|
FIELD_TYPE,
|
|
7664
7760
|
HISTORY_DEBOUNCE_WAIT,
|
|
7761
|
+
PseudoStateMenuItems,
|
|
7762
|
+
STYLE_SECTIONS,
|
|
7763
|
+
STYLE_SECTION_NAMES,
|
|
7665
7764
|
SectionContent,
|
|
7765
|
+
SectionsList,
|
|
7666
7766
|
SettingsControl,
|
|
7667
7767
|
SettingsField,
|
|
7668
7768
|
StyleIndicator,
|
|
7769
|
+
StyleInheritanceProvider,
|
|
7770
|
+
StyleProvider,
|
|
7771
|
+
StyleSections,
|
|
7669
7772
|
StyleTabSection,
|
|
7670
7773
|
StylesProviderCannotUpdatePropsError,
|
|
7671
7774
|
controlsRegistry,
|
|
@@ -7697,6 +7800,7 @@ export {
|
|
|
7697
7800
|
useElement,
|
|
7698
7801
|
usePanelActions,
|
|
7699
7802
|
usePanelStatus,
|
|
7803
|
+
usePseudoStates,
|
|
7700
7804
|
useStateByElement,
|
|
7701
7805
|
useStyle,
|
|
7702
7806
|
useStylesRerender
|