@elementor/editor-editing-panel 4.0.0-509 → 4.0.0-511
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 +3 -5
- package/dist/index.d.ts +3 -5
- package/dist/index.js +158 -200
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +125 -166
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
- package/src/components/style-sections/typography-section/font-family-field.tsx +1 -2
- package/src/index.ts +0 -1
- package/src/components/style-sections/typography-section/hooks/use-font-families.ts +0 -51
package/dist/index.js
CHANGED
|
@@ -65,7 +65,6 @@ __export(index_exports, {
|
|
|
65
65
|
useClassesProp: () => useClassesProp,
|
|
66
66
|
useCustomCss: () => useCustomCss,
|
|
67
67
|
useElement: () => useElement,
|
|
68
|
-
useFontFamilies: () => useFontFamilies,
|
|
69
68
|
usePanelActions: () => usePanelActions,
|
|
70
69
|
usePanelStatus: () => usePanelStatus,
|
|
71
70
|
useStateByElement: () => useStateByElement,
|
|
@@ -1737,7 +1736,7 @@ var import_icons21 = require("@elementor/icons");
|
|
|
1737
1736
|
var import_locations4 = require("@elementor/locations");
|
|
1738
1737
|
var import_session8 = require("@elementor/session");
|
|
1739
1738
|
var import_ui38 = require("@elementor/ui");
|
|
1740
|
-
var
|
|
1739
|
+
var import_i18n56 = require("@wordpress/i18n");
|
|
1741
1740
|
|
|
1742
1741
|
// src/control-replacement.tsx
|
|
1743
1742
|
var import_editor_controls = require("@elementor/editor-controls");
|
|
@@ -1786,11 +1785,11 @@ function EditorPanelErrorFallback() {
|
|
|
1786
1785
|
}
|
|
1787
1786
|
|
|
1788
1787
|
// src/components/editing-panel-tabs.tsx
|
|
1789
|
-
var
|
|
1788
|
+
var import_react34 = require("react");
|
|
1790
1789
|
var React82 = __toESM(require("react"));
|
|
1791
|
-
var
|
|
1790
|
+
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
1792
1791
|
var import_ui37 = require("@elementor/ui");
|
|
1793
|
-
var
|
|
1792
|
+
var import_i18n55 = require("@wordpress/i18n");
|
|
1794
1793
|
|
|
1795
1794
|
// src/contexts/scroll-context.tsx
|
|
1796
1795
|
var React14 = __toESM(require("react"));
|
|
@@ -2427,13 +2426,13 @@ function isControl(control) {
|
|
|
2427
2426
|
|
|
2428
2427
|
// src/components/style-tab.tsx
|
|
2429
2428
|
var React81 = __toESM(require("react"));
|
|
2430
|
-
var
|
|
2429
|
+
var import_react33 = require("react");
|
|
2431
2430
|
var import_editor_props14 = require("@elementor/editor-props");
|
|
2432
2431
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2433
2432
|
var import_locations3 = require("@elementor/locations");
|
|
2434
2433
|
var import_session7 = require("@elementor/session");
|
|
2435
2434
|
var import_ui36 = require("@elementor/ui");
|
|
2436
|
-
var
|
|
2435
|
+
var import_i18n54 = require("@wordpress/i18n");
|
|
2437
2436
|
|
|
2438
2437
|
// src/contexts/styles-inheritance-context.tsx
|
|
2439
2438
|
var React25 = __toESM(require("react"));
|
|
@@ -4183,50 +4182,10 @@ var ColumnGapField = () => {
|
|
|
4183
4182
|
var React65 = __toESM(require("react"));
|
|
4184
4183
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4185
4184
|
var import_editor_ui7 = require("@elementor/editor-ui");
|
|
4186
|
-
var import_i18n42 = require("@wordpress/i18n");
|
|
4187
|
-
|
|
4188
|
-
// src/components/style-sections/typography-section/hooks/use-font-families.ts
|
|
4189
|
-
var import_react29 = require("react");
|
|
4190
|
-
var import_editor_v1_adapters7 = require("@elementor/editor-v1-adapters");
|
|
4191
4185
|
var import_i18n41 = require("@wordpress/i18n");
|
|
4192
|
-
var
|
|
4193
|
-
system: (0, import_i18n41.__)("System", "elementor"),
|
|
4194
|
-
custom: (0, import_i18n41.__)("Custom Fonts", "elementor"),
|
|
4195
|
-
googlefonts: (0, import_i18n41.__)("Google Fonts", "elementor")
|
|
4196
|
-
};
|
|
4197
|
-
var getFontFamilies = () => {
|
|
4198
|
-
const { controls } = (0, import_editor_v1_adapters7.getElementorConfig)();
|
|
4199
|
-
const options12 = controls?.font?.options;
|
|
4200
|
-
if (!options12) {
|
|
4201
|
-
return null;
|
|
4202
|
-
}
|
|
4203
|
-
return options12;
|
|
4204
|
-
};
|
|
4205
|
-
var useFontFamilies = () => {
|
|
4206
|
-
const fontFamilies = getFontFamilies();
|
|
4207
|
-
return (0, import_react29.useMemo)(() => {
|
|
4208
|
-
const categoriesOrder = ["system", "custom", "googlefonts"];
|
|
4209
|
-
return Object.entries(fontFamilies || {}).reduce((acc, [font, category]) => {
|
|
4210
|
-
if (!supportedCategories[category]) {
|
|
4211
|
-
return acc;
|
|
4212
|
-
}
|
|
4213
|
-
const categoryIndex = categoriesOrder.indexOf(category);
|
|
4214
|
-
if (!acc[categoryIndex]) {
|
|
4215
|
-
acc[categoryIndex] = {
|
|
4216
|
-
label: supportedCategories[category],
|
|
4217
|
-
fonts: []
|
|
4218
|
-
};
|
|
4219
|
-
}
|
|
4220
|
-
acc[categoryIndex].fonts.push(font);
|
|
4221
|
-
return acc;
|
|
4222
|
-
}, []).filter(Boolean);
|
|
4223
|
-
}, [fontFamilies]);
|
|
4224
|
-
};
|
|
4225
|
-
|
|
4226
|
-
// src/components/style-sections/typography-section/font-family-field.tsx
|
|
4227
|
-
var FONT_FAMILY_LABEL = (0, import_i18n42.__)("Font family", "elementor");
|
|
4186
|
+
var FONT_FAMILY_LABEL = (0, import_i18n41.__)("Font family", "elementor");
|
|
4228
4187
|
var FontFamilyField = () => {
|
|
4229
|
-
const fontFamilies = useFontFamilies();
|
|
4188
|
+
const fontFamilies = (0, import_editor_controls37.useFontFamilies)();
|
|
4230
4189
|
const sectionWidth = (0, import_editor_ui7.useSectionWidth)();
|
|
4231
4190
|
if (fontFamilies.length === 0) {
|
|
4232
4191
|
return null;
|
|
@@ -4243,12 +4202,12 @@ var FontFamilyField = () => {
|
|
|
4243
4202
|
|
|
4244
4203
|
// src/components/style-sections/typography-section/font-size-field.tsx
|
|
4245
4204
|
var React66 = __toESM(require("react"));
|
|
4246
|
-
var
|
|
4205
|
+
var import_react29 = require("react");
|
|
4247
4206
|
var import_editor_controls38 = require("@elementor/editor-controls");
|
|
4248
|
-
var
|
|
4249
|
-
var FONT_SIZE_LABEL = (0,
|
|
4207
|
+
var import_i18n42 = require("@wordpress/i18n");
|
|
4208
|
+
var FONT_SIZE_LABEL = (0, import_i18n42.__)("Font size", "elementor");
|
|
4250
4209
|
var FontSizeField = () => {
|
|
4251
|
-
const rowRef = (0,
|
|
4210
|
+
const rowRef = (0, import_react29.useRef)(null);
|
|
4252
4211
|
return /* @__PURE__ */ React66.createElement(StylesField, { bind: "font-size", propDisplayName: FONT_SIZE_LABEL }, /* @__PURE__ */ React66.createElement(StylesFieldLayout, { label: FONT_SIZE_LABEL, ref: rowRef }, /* @__PURE__ */ React66.createElement(import_editor_controls38.SizeControl, { anchorRef: rowRef, ariaLabel: FONT_SIZE_LABEL })));
|
|
4253
4212
|
};
|
|
4254
4213
|
|
|
@@ -4256,18 +4215,18 @@ var FontSizeField = () => {
|
|
|
4256
4215
|
var React67 = __toESM(require("react"));
|
|
4257
4216
|
var import_editor_controls39 = require("@elementor/editor-controls");
|
|
4258
4217
|
var import_icons15 = require("@elementor/icons");
|
|
4259
|
-
var
|
|
4260
|
-
var FONT_STYLE_LABEL = (0,
|
|
4218
|
+
var import_i18n43 = require("@wordpress/i18n");
|
|
4219
|
+
var FONT_STYLE_LABEL = (0, import_i18n43.__)("Font style", "elementor");
|
|
4261
4220
|
var options7 = [
|
|
4262
4221
|
{
|
|
4263
4222
|
value: "normal",
|
|
4264
|
-
label: (0,
|
|
4223
|
+
label: (0, import_i18n43.__)("Normal", "elementor"),
|
|
4265
4224
|
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons15.MinusIcon, { fontSize: size }),
|
|
4266
4225
|
showTooltip: true
|
|
4267
4226
|
},
|
|
4268
4227
|
{
|
|
4269
4228
|
value: "italic",
|
|
4270
|
-
label: (0,
|
|
4229
|
+
label: (0, import_i18n43.__)("Italic", "elementor"),
|
|
4271
4230
|
renderContent: ({ size }) => /* @__PURE__ */ React67.createElement(import_icons15.ItalicIcon, { fontSize: size }),
|
|
4272
4231
|
showTooltip: true
|
|
4273
4232
|
}
|
|
@@ -4279,18 +4238,18 @@ var FontStyleField = () => {
|
|
|
4279
4238
|
// src/components/style-sections/typography-section/font-weight-field.tsx
|
|
4280
4239
|
var React68 = __toESM(require("react"));
|
|
4281
4240
|
var import_editor_controls40 = require("@elementor/editor-controls");
|
|
4282
|
-
var
|
|
4283
|
-
var FONT_WEIGHT_LABEL = (0,
|
|
4241
|
+
var import_i18n44 = require("@wordpress/i18n");
|
|
4242
|
+
var FONT_WEIGHT_LABEL = (0, import_i18n44.__)("Font weight", "elementor");
|
|
4284
4243
|
var fontWeightOptions = [
|
|
4285
|
-
{ value: "100", label: (0,
|
|
4286
|
-
{ value: "200", label: (0,
|
|
4287
|
-
{ value: "300", label: (0,
|
|
4288
|
-
{ value: "400", label: (0,
|
|
4289
|
-
{ value: "500", label: (0,
|
|
4290
|
-
{ value: "600", label: (0,
|
|
4291
|
-
{ value: "700", label: (0,
|
|
4292
|
-
{ value: "800", label: (0,
|
|
4293
|
-
{ value: "900", label: (0,
|
|
4244
|
+
{ value: "100", label: (0, import_i18n44.__)("100 - Thin", "elementor") },
|
|
4245
|
+
{ value: "200", label: (0, import_i18n44.__)("200 - Extra light", "elementor") },
|
|
4246
|
+
{ value: "300", label: (0, import_i18n44.__)("300 - Light", "elementor") },
|
|
4247
|
+
{ value: "400", label: (0, import_i18n44.__)("400 - Normal", "elementor") },
|
|
4248
|
+
{ value: "500", label: (0, import_i18n44.__)("500 - Medium", "elementor") },
|
|
4249
|
+
{ value: "600", label: (0, import_i18n44.__)("600 - Semi bold", "elementor") },
|
|
4250
|
+
{ value: "700", label: (0, import_i18n44.__)("700 - Bold", "elementor") },
|
|
4251
|
+
{ value: "800", label: (0, import_i18n44.__)("800 - Extra bold", "elementor") },
|
|
4252
|
+
{ value: "900", label: (0, import_i18n44.__)("900 - Black", "elementor") }
|
|
4294
4253
|
];
|
|
4295
4254
|
var FontWeightField = () => {
|
|
4296
4255
|
return /* @__PURE__ */ React68.createElement(StylesField, { bind: "font-weight", propDisplayName: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(StylesFieldLayout, { label: FONT_WEIGHT_LABEL }, /* @__PURE__ */ React68.createElement(import_editor_controls40.SelectControl, { options: fontWeightOptions })));
|
|
@@ -4298,23 +4257,23 @@ var FontWeightField = () => {
|
|
|
4298
4257
|
|
|
4299
4258
|
// src/components/style-sections/typography-section/letter-spacing-field.tsx
|
|
4300
4259
|
var React69 = __toESM(require("react"));
|
|
4301
|
-
var
|
|
4260
|
+
var import_react30 = require("react");
|
|
4302
4261
|
var import_editor_controls41 = require("@elementor/editor-controls");
|
|
4303
|
-
var
|
|
4304
|
-
var LETTER_SPACING_LABEL = (0,
|
|
4262
|
+
var import_i18n45 = require("@wordpress/i18n");
|
|
4263
|
+
var LETTER_SPACING_LABEL = (0, import_i18n45.__)("Letter spacing", "elementor");
|
|
4305
4264
|
var LetterSpacingField = () => {
|
|
4306
|
-
const rowRef = (0,
|
|
4265
|
+
const rowRef = (0, import_react30.useRef)(null);
|
|
4307
4266
|
return /* @__PURE__ */ React69.createElement(StylesField, { bind: "letter-spacing", propDisplayName: LETTER_SPACING_LABEL }, /* @__PURE__ */ React69.createElement(StylesFieldLayout, { label: LETTER_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React69.createElement(import_editor_controls41.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4308
4267
|
};
|
|
4309
4268
|
|
|
4310
4269
|
// src/components/style-sections/typography-section/line-height-field.tsx
|
|
4311
4270
|
var React70 = __toESM(require("react"));
|
|
4312
|
-
var
|
|
4271
|
+
var import_react31 = require("react");
|
|
4313
4272
|
var import_editor_controls42 = require("@elementor/editor-controls");
|
|
4314
|
-
var
|
|
4315
|
-
var LINE_HEIGHT_LABEL = (0,
|
|
4273
|
+
var import_i18n46 = require("@wordpress/i18n");
|
|
4274
|
+
var LINE_HEIGHT_LABEL = (0, import_i18n46.__)("Line height", "elementor");
|
|
4316
4275
|
var LineHeightField = () => {
|
|
4317
|
-
const rowRef = (0,
|
|
4276
|
+
const rowRef = (0, import_react31.useRef)(null);
|
|
4318
4277
|
return /* @__PURE__ */ React70.createElement(StylesField, { bind: "line-height", propDisplayName: LINE_HEIGHT_LABEL }, /* @__PURE__ */ React70.createElement(StylesFieldLayout, { label: LINE_HEIGHT_LABEL, ref: rowRef }, /* @__PURE__ */ React70.createElement(import_editor_controls42.SizeControl, { anchorRef: rowRef })));
|
|
4319
4278
|
};
|
|
4320
4279
|
|
|
@@ -4323,32 +4282,32 @@ var React71 = __toESM(require("react"));
|
|
|
4323
4282
|
var import_editor_controls43 = require("@elementor/editor-controls");
|
|
4324
4283
|
var import_icons16 = require("@elementor/icons");
|
|
4325
4284
|
var import_ui34 = require("@elementor/ui");
|
|
4326
|
-
var
|
|
4327
|
-
var TEXT_ALIGNMENT_LABEL = (0,
|
|
4285
|
+
var import_i18n47 = require("@wordpress/i18n");
|
|
4286
|
+
var TEXT_ALIGNMENT_LABEL = (0, import_i18n47.__)("Text align", "elementor");
|
|
4328
4287
|
var AlignStartIcon = (0, import_ui34.withDirection)(import_icons16.AlignLeftIcon);
|
|
4329
4288
|
var AlignEndIcon = (0, import_ui34.withDirection)(import_icons16.AlignRightIcon);
|
|
4330
4289
|
var options8 = [
|
|
4331
4290
|
{
|
|
4332
4291
|
value: "start",
|
|
4333
|
-
label: (0,
|
|
4292
|
+
label: (0, import_i18n47.__)("Start", "elementor"),
|
|
4334
4293
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(AlignStartIcon, { fontSize: size }),
|
|
4335
4294
|
showTooltip: true
|
|
4336
4295
|
},
|
|
4337
4296
|
{
|
|
4338
4297
|
value: "center",
|
|
4339
|
-
label: (0,
|
|
4298
|
+
label: (0, import_i18n47.__)("Center", "elementor"),
|
|
4340
4299
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(import_icons16.AlignCenterIcon, { fontSize: size }),
|
|
4341
4300
|
showTooltip: true
|
|
4342
4301
|
},
|
|
4343
4302
|
{
|
|
4344
4303
|
value: "end",
|
|
4345
|
-
label: (0,
|
|
4304
|
+
label: (0, import_i18n47.__)("End", "elementor"),
|
|
4346
4305
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(AlignEndIcon, { fontSize: size }),
|
|
4347
4306
|
showTooltip: true
|
|
4348
4307
|
},
|
|
4349
4308
|
{
|
|
4350
4309
|
value: "justify",
|
|
4351
|
-
label: (0,
|
|
4310
|
+
label: (0, import_i18n47.__)("Justify", "elementor"),
|
|
4352
4311
|
renderContent: ({ size }) => /* @__PURE__ */ React71.createElement(import_icons16.AlignJustifiedIcon, { fontSize: size }),
|
|
4353
4312
|
showTooltip: true
|
|
4354
4313
|
}
|
|
@@ -4360,8 +4319,8 @@ var TextAlignmentField = () => {
|
|
|
4360
4319
|
// src/components/style-sections/typography-section/text-color-field.tsx
|
|
4361
4320
|
var React72 = __toESM(require("react"));
|
|
4362
4321
|
var import_editor_controls44 = require("@elementor/editor-controls");
|
|
4363
|
-
var
|
|
4364
|
-
var TEXT_COLOR_LABEL = (0,
|
|
4322
|
+
var import_i18n48 = require("@wordpress/i18n");
|
|
4323
|
+
var TEXT_COLOR_LABEL = (0, import_i18n48.__)("Text color", "elementor");
|
|
4365
4324
|
var TextColorField = () => {
|
|
4366
4325
|
return /* @__PURE__ */ React72.createElement(StylesField, { bind: "color", propDisplayName: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(StylesFieldLayout, { label: TEXT_COLOR_LABEL }, /* @__PURE__ */ React72.createElement(import_editor_controls44.ColorControl, { id: "text-color-control" })));
|
|
4367
4326
|
};
|
|
@@ -4370,31 +4329,31 @@ var TextColorField = () => {
|
|
|
4370
4329
|
var React73 = __toESM(require("react"));
|
|
4371
4330
|
var import_editor_controls45 = require("@elementor/editor-controls");
|
|
4372
4331
|
var import_icons17 = require("@elementor/icons");
|
|
4373
|
-
var
|
|
4374
|
-
var TEXT_DECORATION_LABEL = (0,
|
|
4332
|
+
var import_i18n49 = require("@wordpress/i18n");
|
|
4333
|
+
var TEXT_DECORATION_LABEL = (0, import_i18n49.__)("Line decoration", "elementor");
|
|
4375
4334
|
var options9 = [
|
|
4376
4335
|
{
|
|
4377
4336
|
value: "none",
|
|
4378
|
-
label: (0,
|
|
4337
|
+
label: (0, import_i18n49.__)("None", "elementor"),
|
|
4379
4338
|
renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons17.MinusIcon, { fontSize: size }),
|
|
4380
4339
|
showTooltip: true,
|
|
4381
4340
|
exclusive: true
|
|
4382
4341
|
},
|
|
4383
4342
|
{
|
|
4384
4343
|
value: "underline",
|
|
4385
|
-
label: (0,
|
|
4344
|
+
label: (0, import_i18n49.__)("Underline", "elementor"),
|
|
4386
4345
|
renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons17.UnderlineIcon, { fontSize: size }),
|
|
4387
4346
|
showTooltip: true
|
|
4388
4347
|
},
|
|
4389
4348
|
{
|
|
4390
4349
|
value: "line-through",
|
|
4391
|
-
label: (0,
|
|
4350
|
+
label: (0, import_i18n49.__)("Line-through", "elementor"),
|
|
4392
4351
|
renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons17.StrikethroughIcon, { fontSize: size }),
|
|
4393
4352
|
showTooltip: true
|
|
4394
4353
|
},
|
|
4395
4354
|
{
|
|
4396
4355
|
value: "overline",
|
|
4397
|
-
label: (0,
|
|
4356
|
+
label: (0, import_i18n49.__)("Overline", "elementor"),
|
|
4398
4357
|
renderContent: ({ size }) => /* @__PURE__ */ React73.createElement(import_icons17.OverlineIcon, { fontSize: size }),
|
|
4399
4358
|
showTooltip: true
|
|
4400
4359
|
}
|
|
@@ -4405,18 +4364,18 @@ var TextDecorationField = () => /* @__PURE__ */ React73.createElement(StylesFiel
|
|
|
4405
4364
|
var React74 = __toESM(require("react"));
|
|
4406
4365
|
var import_editor_controls46 = require("@elementor/editor-controls");
|
|
4407
4366
|
var import_icons18 = require("@elementor/icons");
|
|
4408
|
-
var
|
|
4409
|
-
var TEXT_DIRECTION_LABEL = (0,
|
|
4367
|
+
var import_i18n50 = require("@wordpress/i18n");
|
|
4368
|
+
var TEXT_DIRECTION_LABEL = (0, import_i18n50.__)("Direction", "elementor");
|
|
4410
4369
|
var options10 = [
|
|
4411
4370
|
{
|
|
4412
4371
|
value: "ltr",
|
|
4413
|
-
label: (0,
|
|
4372
|
+
label: (0, import_i18n50.__)("Left to right", "elementor"),
|
|
4414
4373
|
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons18.TextDirectionLtrIcon, { fontSize: size }),
|
|
4415
4374
|
showTooltip: true
|
|
4416
4375
|
},
|
|
4417
4376
|
{
|
|
4418
4377
|
value: "rtl",
|
|
4419
|
-
label: (0,
|
|
4378
|
+
label: (0, import_i18n50.__)("Right to left", "elementor"),
|
|
4420
4379
|
renderContent: ({ size }) => /* @__PURE__ */ React74.createElement(import_icons18.TextDirectionRtlIcon, { fontSize: size }),
|
|
4421
4380
|
showTooltip: true
|
|
4422
4381
|
}
|
|
@@ -4428,7 +4387,7 @@ var TextDirectionField = () => {
|
|
|
4428
4387
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
4429
4388
|
var React76 = __toESM(require("react"));
|
|
4430
4389
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4431
|
-
var
|
|
4390
|
+
var import_i18n51 = require("@wordpress/i18n");
|
|
4432
4391
|
|
|
4433
4392
|
// src/components/add-or-remove-content.tsx
|
|
4434
4393
|
var React75 = __toESM(require("react"));
|
|
@@ -4475,7 +4434,7 @@ var initTextStroke = {
|
|
|
4475
4434
|
}
|
|
4476
4435
|
}
|
|
4477
4436
|
};
|
|
4478
|
-
var TEXT_STROKE_LABEL = (0,
|
|
4437
|
+
var TEXT_STROKE_LABEL = (0, import_i18n51.__)("Text stroke", "elementor");
|
|
4479
4438
|
var TextStrokeField = () => {
|
|
4480
4439
|
const { value, setValue, canEdit } = useStylesField("stroke", {
|
|
4481
4440
|
history: { propDisplayName: TEXT_STROKE_LABEL }
|
|
@@ -4504,30 +4463,30 @@ var TextStrokeField = () => {
|
|
|
4504
4463
|
var React77 = __toESM(require("react"));
|
|
4505
4464
|
var import_editor_controls48 = require("@elementor/editor-controls");
|
|
4506
4465
|
var import_icons20 = require("@elementor/icons");
|
|
4507
|
-
var
|
|
4508
|
-
var TEXT_TRANSFORM_LABEL = (0,
|
|
4466
|
+
var import_i18n52 = require("@wordpress/i18n");
|
|
4467
|
+
var TEXT_TRANSFORM_LABEL = (0, import_i18n52.__)("Text transform", "elementor");
|
|
4509
4468
|
var options11 = [
|
|
4510
4469
|
{
|
|
4511
4470
|
value: "none",
|
|
4512
|
-
label: (0,
|
|
4471
|
+
label: (0, import_i18n52.__)("None", "elementor"),
|
|
4513
4472
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons20.MinusIcon, { fontSize: size }),
|
|
4514
4473
|
showTooltip: true
|
|
4515
4474
|
},
|
|
4516
4475
|
{
|
|
4517
4476
|
value: "capitalize",
|
|
4518
|
-
label: (0,
|
|
4477
|
+
label: (0, import_i18n52.__)("Capitalize", "elementor"),
|
|
4519
4478
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons20.LetterCaseIcon, { fontSize: size }),
|
|
4520
4479
|
showTooltip: true
|
|
4521
4480
|
},
|
|
4522
4481
|
{
|
|
4523
4482
|
value: "uppercase",
|
|
4524
|
-
label: (0,
|
|
4483
|
+
label: (0, import_i18n52.__)("Uppercase", "elementor"),
|
|
4525
4484
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons20.LetterCaseUpperIcon, { fontSize: size }),
|
|
4526
4485
|
showTooltip: true
|
|
4527
4486
|
},
|
|
4528
4487
|
{
|
|
4529
4488
|
value: "lowercase",
|
|
4530
|
-
label: (0,
|
|
4489
|
+
label: (0, import_i18n52.__)("Lowercase", "elementor"),
|
|
4531
4490
|
renderContent: ({ size }) => /* @__PURE__ */ React77.createElement(import_icons20.LetterCaseLowerIcon, { fontSize: size }),
|
|
4532
4491
|
showTooltip: true
|
|
4533
4492
|
}
|
|
@@ -4536,12 +4495,12 @@ var TransformField = () => /* @__PURE__ */ React77.createElement(StylesField, {
|
|
|
4536
4495
|
|
|
4537
4496
|
// src/components/style-sections/typography-section/word-spacing-field.tsx
|
|
4538
4497
|
var React78 = __toESM(require("react"));
|
|
4539
|
-
var
|
|
4498
|
+
var import_react32 = require("react");
|
|
4540
4499
|
var import_editor_controls49 = require("@elementor/editor-controls");
|
|
4541
|
-
var
|
|
4542
|
-
var WORD_SPACING_LABEL = (0,
|
|
4500
|
+
var import_i18n53 = require("@wordpress/i18n");
|
|
4501
|
+
var WORD_SPACING_LABEL = (0, import_i18n53.__)("Word spacing", "elementor");
|
|
4543
4502
|
var WordSpacingField = () => {
|
|
4544
|
-
const rowRef = (0,
|
|
4503
|
+
const rowRef = (0, import_react32.useRef)(null);
|
|
4545
4504
|
return /* @__PURE__ */ React78.createElement(StylesField, { bind: "word-spacing", propDisplayName: WORD_SPACING_LABEL }, /* @__PURE__ */ React78.createElement(StylesFieldLayout, { label: WORD_SPACING_LABEL, ref: rowRef }, /* @__PURE__ */ React78.createElement(import_editor_controls49.SizeControl, { anchorRef: rowRef, min: -Number.MAX_SAFE_INTEGER })));
|
|
4546
4505
|
};
|
|
4547
4506
|
|
|
@@ -4599,7 +4558,7 @@ var stickyHeaderStyles = {
|
|
|
4599
4558
|
var StyleTab = () => {
|
|
4600
4559
|
const currentClassesProp = useCurrentClassesProp();
|
|
4601
4560
|
const [activeStyleDefId, setActiveStyleDefId] = useActiveStyleDefId(currentClassesProp ?? "");
|
|
4602
|
-
const [activeStyleState, setActiveStyleState] = (0,
|
|
4561
|
+
const [activeStyleState, setActiveStyleState] = (0, import_react33.useState)(null);
|
|
4603
4562
|
const breakpoint = (0, import_editor_responsive3.useActiveBreakpoint)();
|
|
4604
4563
|
if (!currentClassesProp) {
|
|
4605
4564
|
return null;
|
|
@@ -4621,7 +4580,7 @@ var StyleTab = () => {
|
|
|
4621
4580
|
section: {
|
|
4622
4581
|
component: LayoutSection,
|
|
4623
4582
|
name: "Layout",
|
|
4624
|
-
title: (0,
|
|
4583
|
+
title: (0, import_i18n54.__)("Layout", "elementor")
|
|
4625
4584
|
},
|
|
4626
4585
|
fields: [
|
|
4627
4586
|
"display",
|
|
@@ -4640,7 +4599,7 @@ var StyleTab = () => {
|
|
|
4640
4599
|
section: {
|
|
4641
4600
|
component: SpacingSection,
|
|
4642
4601
|
name: "Spacing",
|
|
4643
|
-
title: (0,
|
|
4602
|
+
title: (0, import_i18n54.__)("Spacing", "elementor")
|
|
4644
4603
|
},
|
|
4645
4604
|
fields: ["margin", "padding"]
|
|
4646
4605
|
}
|
|
@@ -4650,7 +4609,7 @@ var StyleTab = () => {
|
|
|
4650
4609
|
section: {
|
|
4651
4610
|
component: SizeSection,
|
|
4652
4611
|
name: "Size",
|
|
4653
|
-
title: (0,
|
|
4612
|
+
title: (0, import_i18n54.__)("Size", "elementor")
|
|
4654
4613
|
},
|
|
4655
4614
|
fields: [
|
|
4656
4615
|
"width",
|
|
@@ -4670,7 +4629,7 @@ var StyleTab = () => {
|
|
|
4670
4629
|
section: {
|
|
4671
4630
|
component: PositionSection,
|
|
4672
4631
|
name: "Position",
|
|
4673
|
-
title: (0,
|
|
4632
|
+
title: (0, import_i18n54.__)("Position", "elementor")
|
|
4674
4633
|
},
|
|
4675
4634
|
fields: ["position", "z-index", "scroll-margin-top"]
|
|
4676
4635
|
}
|
|
@@ -4680,7 +4639,7 @@ var StyleTab = () => {
|
|
|
4680
4639
|
section: {
|
|
4681
4640
|
component: TypographySection,
|
|
4682
4641
|
name: "Typography",
|
|
4683
|
-
title: (0,
|
|
4642
|
+
title: (0, import_i18n54.__)("Typography", "elementor")
|
|
4684
4643
|
},
|
|
4685
4644
|
fields: [
|
|
4686
4645
|
"font-family",
|
|
@@ -4705,7 +4664,7 @@ var StyleTab = () => {
|
|
|
4705
4664
|
section: {
|
|
4706
4665
|
component: BackgroundSection,
|
|
4707
4666
|
name: "Background",
|
|
4708
|
-
title: (0,
|
|
4667
|
+
title: (0, import_i18n54.__)("Background", "elementor")
|
|
4709
4668
|
},
|
|
4710
4669
|
fields: ["background"]
|
|
4711
4670
|
}
|
|
@@ -4715,7 +4674,7 @@ var StyleTab = () => {
|
|
|
4715
4674
|
section: {
|
|
4716
4675
|
component: BorderSection,
|
|
4717
4676
|
name: "Border",
|
|
4718
|
-
title: (0,
|
|
4677
|
+
title: (0, import_i18n54.__)("Border", "elementor")
|
|
4719
4678
|
},
|
|
4720
4679
|
fields: ["border-radius", "border-width", "border-color", "border-style"]
|
|
4721
4680
|
}
|
|
@@ -4725,7 +4684,7 @@ var StyleTab = () => {
|
|
|
4725
4684
|
section: {
|
|
4726
4685
|
component: EffectsSection,
|
|
4727
4686
|
name: "Effects",
|
|
4728
|
-
title: (0,
|
|
4687
|
+
title: (0, import_i18n54.__)("Effects", "elementor")
|
|
4729
4688
|
},
|
|
4730
4689
|
fields: [
|
|
4731
4690
|
"mix-blend-mode",
|
|
@@ -4762,13 +4721,13 @@ var EditingPanelTabs = () => {
|
|
|
4762
4721
|
return (
|
|
4763
4722
|
// When switching between elements, the local states should be reset. We are using key to rerender the tabs.
|
|
4764
4723
|
// Reference: https://react.dev/learn/preserving-and-resetting-state#resetting-a-form-with-a-key
|
|
4765
|
-
/* @__PURE__ */ React82.createElement(
|
|
4724
|
+
/* @__PURE__ */ React82.createElement(import_react34.Fragment, { key: element.id }, /* @__PURE__ */ React82.createElement(PanelTabContent, null))
|
|
4766
4725
|
);
|
|
4767
4726
|
};
|
|
4768
4727
|
var PanelTabContent = () => {
|
|
4769
4728
|
const editorDefaults = useDefaultPanelSettings();
|
|
4770
4729
|
const defaultComponentTab = editorDefaults.defaultTab;
|
|
4771
|
-
const isInteractionsActive = (0,
|
|
4730
|
+
const isInteractionsActive = (0, import_editor_v1_adapters7.isExperimentActive)("e_interactions");
|
|
4772
4731
|
const [currentTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
4773
4732
|
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui37.useTabs)(currentTab);
|
|
4774
4733
|
return /* @__PURE__ */ React82.createElement(ScrollProvider, null, /* @__PURE__ */ React82.createElement(import_ui37.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React82.createElement(import_ui37.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React82.createElement(
|
|
@@ -4783,9 +4742,9 @@ var PanelTabContent = () => {
|
|
|
4783
4742
|
setCurrentTab(newValue);
|
|
4784
4743
|
}
|
|
4785
4744
|
},
|
|
4786
|
-
/* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0,
|
|
4787
|
-
/* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0,
|
|
4788
|
-
isInteractionsActive && /* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0,
|
|
4745
|
+
/* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0, import_i18n55.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
4746
|
+
/* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0, import_i18n55.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
4747
|
+
isInteractionsActive && /* @__PURE__ */ React82.createElement(import_ui37.Tab, { label: (0, import_i18n55.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
4789
4748
|
), /* @__PURE__ */ React82.createElement(import_ui37.Divider, null)), /* @__PURE__ */ React82.createElement(import_ui37.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React82.createElement(SettingsTab, null)), /* @__PURE__ */ React82.createElement(import_ui37.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React82.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React82.createElement(import_ui37.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React82.createElement(InteractionsTab, null))));
|
|
4790
4749
|
};
|
|
4791
4750
|
|
|
@@ -4799,7 +4758,7 @@ var EditingPanel = () => {
|
|
|
4799
4758
|
if (!element || !elementType) {
|
|
4800
4759
|
return null;
|
|
4801
4760
|
}
|
|
4802
|
-
const panelTitle = (0,
|
|
4761
|
+
const panelTitle = (0, import_i18n56.__)("Edit %s", "elementor").replace("%s", elementType.title);
|
|
4803
4762
|
const { component: ReplacementComponent } = getEditingPanelReplacement(element, elementType) ?? {};
|
|
4804
4763
|
let panelContent = /* @__PURE__ */ React83.createElement(React83.Fragment, null, /* @__PURE__ */ React83.createElement(import_editor_panels.PanelHeader, null, /* @__PURE__ */ React83.createElement(import_editor_panels.PanelHeaderTitle, null, panelTitle), /* @__PURE__ */ React83.createElement(import_icons21.AtomIcon, { fontSize: "small", sx: { color: "text.tertiary" } })), /* @__PURE__ */ React83.createElement(import_editor_panels.PanelBody, null, /* @__PURE__ */ React83.createElement(EditingPanelTabs, null)));
|
|
4805
4764
|
if (ReplacementComponent) {
|
|
@@ -4811,11 +4770,11 @@ var EditingPanel = () => {
|
|
|
4811
4770
|
// src/init.ts
|
|
4812
4771
|
var import_editor = require("@elementor/editor");
|
|
4813
4772
|
var import_editor_panels3 = require("@elementor/editor-panels");
|
|
4814
|
-
var
|
|
4773
|
+
var import_editor_v1_adapters11 = require("@elementor/editor-v1-adapters");
|
|
4815
4774
|
|
|
4816
4775
|
// src/hooks/use-open-editor-panel.ts
|
|
4817
|
-
var
|
|
4818
|
-
var
|
|
4776
|
+
var import_react35 = require("react");
|
|
4777
|
+
var import_editor_v1_adapters8 = require("@elementor/editor-v1-adapters");
|
|
4819
4778
|
|
|
4820
4779
|
// src/panel.ts
|
|
4821
4780
|
var import_editor_panels2 = require("@elementor/editor-panels");
|
|
@@ -4838,8 +4797,8 @@ var isAtomicWidgetSelected = () => {
|
|
|
4838
4797
|
// src/hooks/use-open-editor-panel.ts
|
|
4839
4798
|
var useOpenEditorPanel = () => {
|
|
4840
4799
|
const { open } = usePanelActions();
|
|
4841
|
-
(0,
|
|
4842
|
-
return (0,
|
|
4800
|
+
(0, import_react35.useEffect)(() => {
|
|
4801
|
+
return (0, import_editor_v1_adapters8.__privateListenTo)((0, import_editor_v1_adapters8.commandStartEvent)("panel/editor/open"), () => {
|
|
4843
4802
|
if (isAtomicWidgetSelected()) {
|
|
4844
4803
|
open();
|
|
4845
4804
|
}
|
|
@@ -4855,22 +4814,22 @@ var EditingPanelHooks = () => {
|
|
|
4855
4814
|
|
|
4856
4815
|
// src/components/promotions/custom-css.tsx
|
|
4857
4816
|
var React84 = __toESM(require("react"));
|
|
4858
|
-
var
|
|
4817
|
+
var import_react36 = require("react");
|
|
4859
4818
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
4860
|
-
var
|
|
4819
|
+
var import_i18n57 = require("@wordpress/i18n");
|
|
4861
4820
|
function getCustomCssPromotion() {
|
|
4862
4821
|
const extendedWindow = window;
|
|
4863
4822
|
return extendedWindow.elementor?.config?.v4Promotions?.customCss;
|
|
4864
4823
|
}
|
|
4865
4824
|
var CustomCssSection = () => {
|
|
4866
|
-
const [showInfoTip, setShowInfoTip] = (0,
|
|
4825
|
+
const [showInfoTip, setShowInfoTip] = (0, import_react36.useState)(false);
|
|
4867
4826
|
const promotion = getCustomCssPromotion();
|
|
4868
4827
|
return /* @__PURE__ */ React84.createElement(
|
|
4869
4828
|
StyleTabSection,
|
|
4870
4829
|
{
|
|
4871
4830
|
section: {
|
|
4872
4831
|
name: "Custom CSS",
|
|
4873
|
-
title: (0,
|
|
4832
|
+
title: (0, import_i18n57.__)("Custom CSS", "elementor"),
|
|
4874
4833
|
action: {
|
|
4875
4834
|
component: /* @__PURE__ */ React84.createElement(
|
|
4876
4835
|
import_editor_ui9.PromotionInfotip,
|
|
@@ -4915,7 +4874,7 @@ var import_editor_elements17 = require("@elementor/editor-elements");
|
|
|
4915
4874
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
4916
4875
|
var import_icons22 = require("@elementor/icons");
|
|
4917
4876
|
var import_ui39 = require("@elementor/ui");
|
|
4918
|
-
var
|
|
4877
|
+
var import_i18n59 = require("@wordpress/i18n");
|
|
4919
4878
|
|
|
4920
4879
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
4921
4880
|
var import_editor_elements15 = require("@elementor/editor-elements");
|
|
@@ -4938,7 +4897,7 @@ var getElementByType = (elementId, type) => {
|
|
|
4938
4897
|
var import_editor_controls51 = require("@elementor/editor-controls");
|
|
4939
4898
|
var import_editor_elements16 = require("@elementor/editor-elements");
|
|
4940
4899
|
var import_editor_props15 = require("@elementor/editor-props");
|
|
4941
|
-
var
|
|
4900
|
+
var import_i18n58 = require("@wordpress/i18n");
|
|
4942
4901
|
var TAB_ELEMENT_TYPE = "e-tab";
|
|
4943
4902
|
var TAB_CONTENT_ELEMENT_TYPE = "e-tab-content";
|
|
4944
4903
|
var useActions = () => {
|
|
@@ -4961,7 +4920,7 @@ var useActions = () => {
|
|
|
4961
4920
|
}
|
|
4962
4921
|
(0, import_editor_elements16.duplicateElements)({
|
|
4963
4922
|
elementIds: [tabId, tabContentId],
|
|
4964
|
-
title: (0,
|
|
4923
|
+
title: (0, import_i18n58.__)("Duplicate Tab", "elementor"),
|
|
4965
4924
|
onDuplicateElements: () => {
|
|
4966
4925
|
if (newDefault !== defaultActiveTab) {
|
|
4967
4926
|
setDefaultActiveTab(newDefault, {}, { withHistory: false });
|
|
@@ -4993,7 +4952,7 @@ var useActions = () => {
|
|
|
4993
4952
|
defaultActiveTab
|
|
4994
4953
|
});
|
|
4995
4954
|
(0, import_editor_elements16.moveElements)({
|
|
4996
|
-
title: (0,
|
|
4955
|
+
title: (0, import_i18n58.__)("Reorder Tabs", "elementor"),
|
|
4997
4956
|
moves: [
|
|
4998
4957
|
{
|
|
4999
4958
|
elementId: movedElementId,
|
|
@@ -5027,7 +4986,7 @@ var useActions = () => {
|
|
|
5027
4986
|
defaultActiveTab
|
|
5028
4987
|
});
|
|
5029
4988
|
(0, import_editor_elements16.removeElements)({
|
|
5030
|
-
title: (0,
|
|
4989
|
+
title: (0, import_i18n58.__)("Tabs", "elementor"),
|
|
5031
4990
|
elementIds: items3.flatMap(({ item, index }) => {
|
|
5032
4991
|
const tabId = item.id;
|
|
5033
4992
|
const tabContentContainer = (0, import_editor_elements16.getContainer)(tabContentAreaId);
|
|
@@ -5057,7 +5016,7 @@ var useActions = () => {
|
|
|
5057
5016
|
items3.forEach(({ index }) => {
|
|
5058
5017
|
const position = index + 1;
|
|
5059
5018
|
(0, import_editor_elements16.createElements)({
|
|
5060
|
-
title: (0,
|
|
5019
|
+
title: (0, import_i18n58.__)("Tabs", "elementor"),
|
|
5061
5020
|
elements: [
|
|
5062
5021
|
{
|
|
5063
5022
|
containerId: tabContentAreaId,
|
|
@@ -5126,7 +5085,7 @@ var calculateDefaultOnDuplicate = ({
|
|
|
5126
5085
|
var TAB_MENU_ELEMENT_TYPE = "e-tabs-menu";
|
|
5127
5086
|
var TAB_CONTENT_AREA_ELEMENT_TYPE = "e-tabs-content-area";
|
|
5128
5087
|
var TabsControl = ({ label }) => {
|
|
5129
|
-
return /* @__PURE__ */ React85.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0,
|
|
5088
|
+
return /* @__PURE__ */ React85.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n59.__)("Tabs", "elementor") }, /* @__PURE__ */ React85.createElement(TabsControlContent, { label }));
|
|
5130
5089
|
};
|
|
5131
5090
|
var TabsControlContent = ({ label }) => {
|
|
5132
5091
|
const { element } = useElement();
|
|
@@ -5201,18 +5160,18 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5201
5160
|
if (!isDefault) {
|
|
5202
5161
|
return null;
|
|
5203
5162
|
}
|
|
5204
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Chip, { size: "tiny", shape: "rounded", label: (0,
|
|
5163
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n59.__)("Default", "elementor") });
|
|
5205
5164
|
};
|
|
5206
5165
|
var ItemContent = ({ value, index }) => {
|
|
5207
5166
|
if (!value.id) {
|
|
5208
5167
|
return null;
|
|
5209
5168
|
}
|
|
5210
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React85.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React85.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0,
|
|
5169
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React85.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React85.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n59.__)("Tabs", "elementor") }, /* @__PURE__ */ React85.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5211
5170
|
};
|
|
5212
5171
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5213
5172
|
const { value, setValue } = (0, import_editor_controls52.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
5214
5173
|
const isDefault = value === tabIndex;
|
|
5215
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React85.createElement(import_editor_controls52.ControlFormLabel, null, (0,
|
|
5174
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React85.createElement(import_editor_controls52.ControlFormLabel, null, (0, import_i18n59.__)("Set as default tab", "elementor")), /* @__PURE__ */ React85.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React85.createElement(
|
|
5216
5175
|
import_ui39.Switch,
|
|
5217
5176
|
{
|
|
5218
5177
|
size: "small",
|
|
@@ -5230,7 +5189,7 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5230
5189
|
var TabLabelControl = ({ elementId }) => {
|
|
5231
5190
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
5232
5191
|
const label = editorSettings?.title ?? "";
|
|
5233
|
-
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React85.createElement(import_editor_controls52.ControlFormLabel, null, (0,
|
|
5192
|
+
return /* @__PURE__ */ React85.createElement(import_ui39.Stack, { gap: 1 }, /* @__PURE__ */ React85.createElement(import_editor_controls52.ControlFormLabel, null, (0, import_i18n59.__)("Tab name", "elementor")), /* @__PURE__ */ React85.createElement(
|
|
5234
5193
|
import_ui39.TextField,
|
|
5235
5194
|
{
|
|
5236
5195
|
size: "tiny",
|
|
@@ -5263,7 +5222,7 @@ var ConditionalTooltip = ({
|
|
|
5263
5222
|
size: "small",
|
|
5264
5223
|
sx: { width: 288 }
|
|
5265
5224
|
},
|
|
5266
|
-
/* @__PURE__ */ React85.createElement(import_ui39.Typography, { variant: "body2" }, (0,
|
|
5225
|
+
/* @__PURE__ */ React85.createElement(import_ui39.Typography, { variant: "body2" }, (0, import_i18n59.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5267
5226
|
)
|
|
5268
5227
|
},
|
|
5269
5228
|
/* @__PURE__ */ React85.createElement("span", null, children)
|
|
@@ -5293,17 +5252,17 @@ var import_editor_props18 = require("@elementor/editor-props");
|
|
|
5293
5252
|
var import_icons23 = require("@elementor/icons");
|
|
5294
5253
|
|
|
5295
5254
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
5296
|
-
var
|
|
5255
|
+
var import_react39 = require("react");
|
|
5297
5256
|
|
|
5298
5257
|
// src/dynamics/hooks/use-prop-dynamic-tags.ts
|
|
5299
|
-
var
|
|
5258
|
+
var import_react38 = require("react");
|
|
5300
5259
|
var import_editor_controls53 = require("@elementor/editor-controls");
|
|
5301
5260
|
|
|
5302
5261
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
5303
|
-
var
|
|
5262
|
+
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
5304
5263
|
|
|
5305
5264
|
// src/hooks/use-license-config.ts
|
|
5306
|
-
var
|
|
5265
|
+
var import_react37 = require("react");
|
|
5307
5266
|
var config = { expired: false };
|
|
5308
5267
|
var listeners = /* @__PURE__ */ new Set();
|
|
5309
5268
|
function setLicenseConfig(newConfig) {
|
|
@@ -5318,12 +5277,12 @@ function subscribe(listener) {
|
|
|
5318
5277
|
return () => listeners.delete(listener);
|
|
5319
5278
|
}
|
|
5320
5279
|
function useLicenseConfig() {
|
|
5321
|
-
return (0,
|
|
5280
|
+
return (0, import_react37.useSyncExternalStore)(subscribe, getLicenseConfig, getLicenseConfig);
|
|
5322
5281
|
}
|
|
5323
5282
|
|
|
5324
5283
|
// src/dynamics/sync/get-atomic-dynamic-tags.ts
|
|
5325
5284
|
var getAtomicDynamicTags = (shouldFilterByLicense = true) => {
|
|
5326
|
-
const { atomicDynamicTags } = (0,
|
|
5285
|
+
const { atomicDynamicTags } = (0, import_editor_v1_adapters9.getElementorConfig)();
|
|
5327
5286
|
if (!atomicDynamicTags) {
|
|
5328
5287
|
return null;
|
|
5329
5288
|
}
|
|
@@ -5346,7 +5305,7 @@ var filterByLicense = (tags) => {
|
|
|
5346
5305
|
|
|
5347
5306
|
// src/dynamics/utils.ts
|
|
5348
5307
|
var import_editor_props17 = require("@elementor/editor-props");
|
|
5349
|
-
var
|
|
5308
|
+
var import_editor_v1_adapters10 = require("@elementor/editor-v1-adapters");
|
|
5350
5309
|
var import_schema = require("@elementor/schema");
|
|
5351
5310
|
var DYNAMIC_PROP_TYPE_KEY = "dynamic";
|
|
5352
5311
|
var dynamicPropTypeUtil = (0, import_editor_props17.createPropUtils)(
|
|
@@ -5358,7 +5317,7 @@ var dynamicPropTypeUtil = (0, import_editor_props17.createPropUtils)(
|
|
|
5358
5317
|
})
|
|
5359
5318
|
);
|
|
5360
5319
|
var isDynamicTagSupported = (tagName) => {
|
|
5361
|
-
return !!(0,
|
|
5320
|
+
return !!(0, import_editor_v1_adapters10.getElementorConfig)()?.atomicDynamicTags?.tags?.[tagName];
|
|
5362
5321
|
};
|
|
5363
5322
|
var isDynamicPropType = (prop) => prop.key === DYNAMIC_PROP_TYPE_KEY;
|
|
5364
5323
|
var getDynamicPropType = (propType) => {
|
|
@@ -5387,7 +5346,7 @@ var usePropDynamicTagsInternal = (filterByLicense2) => {
|
|
|
5387
5346
|
categories = propDynamicType?.settings.categories || [];
|
|
5388
5347
|
}
|
|
5389
5348
|
const categoriesKey = categories.join();
|
|
5390
|
-
return (0,
|
|
5349
|
+
return (0, import_react38.useMemo)(
|
|
5391
5350
|
() => getDynamicTagsByCategories(categories, filterByLicense2),
|
|
5392
5351
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5393
5352
|
[categoriesKey, filterByLicense2]
|
|
@@ -5421,7 +5380,7 @@ var getDynamicTagsByCategories = (categories, filterByLicense2) => {
|
|
|
5421
5380
|
// src/dynamics/hooks/use-dynamic-tag.ts
|
|
5422
5381
|
var useDynamicTag = (tagName) => {
|
|
5423
5382
|
const dynamicTags = useAllPropDynamicTags();
|
|
5424
|
-
return (0,
|
|
5383
|
+
return (0, import_react39.useMemo)(() => dynamicTags.find((tag) => tag.name === tagName) ?? null, [dynamicTags, tagName]);
|
|
5425
5384
|
};
|
|
5426
5385
|
|
|
5427
5386
|
// src/dynamics/components/background-control-dynamic-tag.tsx
|
|
@@ -5447,7 +5406,7 @@ var import_editor_controls57 = require("@elementor/editor-controls");
|
|
|
5447
5406
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
5448
5407
|
var import_icons25 = require("@elementor/icons");
|
|
5449
5408
|
var import_ui41 = require("@elementor/ui");
|
|
5450
|
-
var
|
|
5409
|
+
var import_i18n61 = require("@wordpress/i18n");
|
|
5451
5410
|
|
|
5452
5411
|
// src/hooks/use-persist-dynamic-value.ts
|
|
5453
5412
|
var import_session9 = require("@elementor/session");
|
|
@@ -5543,19 +5502,19 @@ var DynamicControl = ({ bind, children }) => {
|
|
|
5543
5502
|
};
|
|
5544
5503
|
|
|
5545
5504
|
// src/dynamics/components/dynamic-selection.tsx
|
|
5546
|
-
var
|
|
5505
|
+
var import_react40 = require("react");
|
|
5547
5506
|
var React89 = __toESM(require("react"));
|
|
5548
5507
|
var import_editor_controls56 = require("@elementor/editor-controls");
|
|
5549
5508
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
5550
5509
|
var import_icons24 = require("@elementor/icons");
|
|
5551
5510
|
var import_ui40 = require("@elementor/ui");
|
|
5552
|
-
var
|
|
5511
|
+
var import_i18n60 = require("@wordpress/i18n");
|
|
5553
5512
|
var SIZE3 = "tiny";
|
|
5554
5513
|
var PROMO_TEXT_WIDTH = 170;
|
|
5555
5514
|
var PRO_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-modal/";
|
|
5556
5515
|
var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew-modal/";
|
|
5557
5516
|
var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
5558
|
-
const [searchValue, setSearchValue] = (0,
|
|
5517
|
+
const [searchValue, setSearchValue] = (0, import_react40.useState)("");
|
|
5559
5518
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
5560
5519
|
const theme = (0, import_ui40.useTheme)();
|
|
5561
5520
|
const { value: anyValue } = (0, import_editor_controls56.useBoundProp)();
|
|
@@ -5594,12 +5553,12 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
5594
5553
|
if (expired) {
|
|
5595
5554
|
return /* @__PURE__ */ React89.createElement(ExpiredDynamicTags, null);
|
|
5596
5555
|
}
|
|
5597
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5556
|
+
return /* @__PURE__ */ React89.createElement(import_react40.Fragment, null, /* @__PURE__ */ React89.createElement(
|
|
5598
5557
|
import_editor_ui10.SearchField,
|
|
5599
5558
|
{
|
|
5600
5559
|
value: searchValue,
|
|
5601
5560
|
onSearch: handleSearch,
|
|
5602
|
-
placeholder: (0,
|
|
5561
|
+
placeholder: (0, import_i18n60.__)("Search dynamic tags\u2026", "elementor")
|
|
5603
5562
|
}
|
|
5604
5563
|
), /* @__PURE__ */ React89.createElement(import_ui40.Divider, null), /* @__PURE__ */ React89.createElement(
|
|
5605
5564
|
import_editor_ui10.PopoverMenuList,
|
|
@@ -5613,10 +5572,10 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
5613
5572
|
}
|
|
5614
5573
|
));
|
|
5615
5574
|
};
|
|
5616
|
-
return /* @__PURE__ */ React89.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0,
|
|
5575
|
+
return /* @__PURE__ */ React89.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n60.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React89.createElement(
|
|
5617
5576
|
import_editor_ui10.PopoverHeader,
|
|
5618
5577
|
{
|
|
5619
|
-
title: (0,
|
|
5578
|
+
title: (0, import_i18n60.__)("Dynamic tags", "elementor"),
|
|
5620
5579
|
onClose: closePopover,
|
|
5621
5580
|
icon: /* @__PURE__ */ React89.createElement(import_icons24.DatabaseIcon, { fontSize: SIZE3 })
|
|
5622
5581
|
}
|
|
@@ -5634,8 +5593,8 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React89.createElem
|
|
|
5634
5593
|
sx: { pb: 3.5 }
|
|
5635
5594
|
},
|
|
5636
5595
|
/* @__PURE__ */ React89.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5637
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
5638
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0,
|
|
5596
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n60.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React89.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
5597
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n60.__)("Try something else.", "elementor"), /* @__PURE__ */ React89.createElement(import_ui40.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n60.__)("Clear & try again", "elementor")))
|
|
5639
5598
|
);
|
|
5640
5599
|
var NoDynamicTags = () => /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(import_ui40.Divider, null), /* @__PURE__ */ React89.createElement(
|
|
5641
5600
|
import_ui40.Stack,
|
|
@@ -5649,8 +5608,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React89.createElement(React89.Fragment
|
|
|
5649
5608
|
sx: { pb: 3.5 }
|
|
5650
5609
|
},
|
|
5651
5610
|
/* @__PURE__ */ React89.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5652
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
5653
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0,
|
|
5611
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n60.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
5612
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n60.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
5654
5613
|
/* @__PURE__ */ React89.createElement(import_editor_ui10.CtaButton, { size: "small", href: PRO_DYNAMIC_TAGS_URL })
|
|
5655
5614
|
));
|
|
5656
5615
|
var ExpiredDynamicTags = () => /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(import_ui40.Divider, null), /* @__PURE__ */ React89.createElement(
|
|
@@ -5665,9 +5624,9 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React89.createElement(React89.Fra
|
|
|
5665
5624
|
sx: { pb: 3.5 }
|
|
5666
5625
|
},
|
|
5667
5626
|
/* @__PURE__ */ React89.createElement(import_icons24.DatabaseIcon, { fontSize: "large" }),
|
|
5668
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0,
|
|
5669
|
-
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0,
|
|
5670
|
-
/* @__PURE__ */ React89.createElement(import_editor_ui10.CtaButton, { size: "small", href: RENEW_DYNAMIC_TAGS_URL, children: (0,
|
|
5627
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n60.__)("Unlock your Dynamic tags again", "elementor")),
|
|
5628
|
+
/* @__PURE__ */ React89.createElement(import_ui40.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n60.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
5629
|
+
/* @__PURE__ */ React89.createElement(import_editor_ui10.CtaButton, { size: "small", href: RENEW_DYNAMIC_TAGS_URL, children: (0, import_i18n60.__)("Renew Now", "elementor") })
|
|
5671
5630
|
));
|
|
5672
5631
|
var useFilteredOptions = (searchValue) => {
|
|
5673
5632
|
const dynamicTags = usePropDynamicTags();
|
|
@@ -5723,7 +5682,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
5723
5682
|
{
|
|
5724
5683
|
size: SIZE4,
|
|
5725
5684
|
onClick: removeDynamicTag,
|
|
5726
|
-
"aria-label": (0,
|
|
5685
|
+
"aria-label": (0, import_i18n61.__)("Remove dynamic value", "elementor")
|
|
5727
5686
|
},
|
|
5728
5687
|
/* @__PURE__ */ React90.createElement(import_icons25.XIcon, { fontSize: SIZE4 })
|
|
5729
5688
|
))
|
|
@@ -5740,7 +5699,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
5740
5699
|
},
|
|
5741
5700
|
...(0, import_ui41.bindPopover)(selectionPopoverState)
|
|
5742
5701
|
},
|
|
5743
|
-
/* @__PURE__ */ React90.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0,
|
|
5702
|
+
/* @__PURE__ */ React90.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n61.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React90.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
5744
5703
|
));
|
|
5745
5704
|
};
|
|
5746
5705
|
var DynamicSettingsPopover = ({
|
|
@@ -5758,7 +5717,7 @@ var DynamicSettingsPopover = ({
|
|
|
5758
5717
|
size: SIZE4,
|
|
5759
5718
|
disabled,
|
|
5760
5719
|
...!disabled && (0, import_ui41.bindTrigger)(popupState),
|
|
5761
|
-
"aria-label": (0,
|
|
5720
|
+
"aria-label": (0, import_i18n61.__)("Dynamic settings", "elementor")
|
|
5762
5721
|
},
|
|
5763
5722
|
/* @__PURE__ */ React90.createElement(import_icons25.SettingsIcon, { fontSize: SIZE4 })
|
|
5764
5723
|
), /* @__PURE__ */ React90.createElement(
|
|
@@ -5773,7 +5732,7 @@ var DynamicSettingsPopover = ({
|
|
|
5773
5732
|
},
|
|
5774
5733
|
...(0, import_ui41.bindPopover)(popupState)
|
|
5775
5734
|
},
|
|
5776
|
-
/* @__PURE__ */ React90.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0,
|
|
5735
|
+
/* @__PURE__ */ React90.createElement(import_editor_ui11.SectionPopoverBody, { "aria-label": (0, import_i18n61.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React90.createElement(
|
|
5777
5736
|
import_editor_ui11.PopoverHeader,
|
|
5778
5737
|
{
|
|
5779
5738
|
title: dynamicTag.label,
|
|
@@ -5911,14 +5870,14 @@ function getDynamicValue(name, settings) {
|
|
|
5911
5870
|
var React91 = __toESM(require("react"));
|
|
5912
5871
|
var import_editor_controls58 = require("@elementor/editor-controls");
|
|
5913
5872
|
var import_icons26 = require("@elementor/icons");
|
|
5914
|
-
var
|
|
5873
|
+
var import_i18n62 = require("@wordpress/i18n");
|
|
5915
5874
|
var usePropDynamicAction = () => {
|
|
5916
5875
|
const { propType } = (0, import_editor_controls58.useBoundProp)();
|
|
5917
5876
|
const visible = !!propType && supportsDynamic(propType);
|
|
5918
5877
|
return {
|
|
5919
5878
|
visible,
|
|
5920
5879
|
icon: import_icons26.DatabaseIcon,
|
|
5921
|
-
title: (0,
|
|
5880
|
+
title: (0, import_i18n62.__)("Dynamic tags", "elementor"),
|
|
5922
5881
|
content: ({ close }) => /* @__PURE__ */ React91.createElement(DynamicSelection, { close })
|
|
5923
5882
|
};
|
|
5924
5883
|
};
|
|
@@ -5951,7 +5910,7 @@ var init2 = () => {
|
|
|
5951
5910
|
// src/reset-style-props.tsx
|
|
5952
5911
|
var import_editor_controls60 = require("@elementor/editor-controls");
|
|
5953
5912
|
var import_icons27 = require("@elementor/icons");
|
|
5954
|
-
var
|
|
5913
|
+
var import_i18n63 = require("@wordpress/i18n");
|
|
5955
5914
|
|
|
5956
5915
|
// src/utils/is-equal.ts
|
|
5957
5916
|
function isEqual(a, b) {
|
|
@@ -6023,7 +5982,7 @@ function useResetStyleValueProps() {
|
|
|
6023
5982
|
const visible = calculateVisibility();
|
|
6024
5983
|
return {
|
|
6025
5984
|
visible,
|
|
6026
|
-
title: (0,
|
|
5985
|
+
title: (0, import_i18n63.__)("Clear", "elementor"),
|
|
6027
5986
|
icon: import_icons27.BrushBigIcon,
|
|
6028
5987
|
onClick: () => resetValue()
|
|
6029
5988
|
};
|
|
@@ -6034,33 +5993,33 @@ var React97 = __toESM(require("react"));
|
|
|
6034
5993
|
var import_editor_controls61 = require("@elementor/editor-controls");
|
|
6035
5994
|
var import_editor_props21 = require("@elementor/editor-props");
|
|
6036
5995
|
var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
|
|
6037
|
-
var
|
|
5996
|
+
var import_i18n67 = require("@wordpress/i18n");
|
|
6038
5997
|
|
|
6039
5998
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6040
5999
|
var React96 = __toESM(require("react"));
|
|
6041
|
-
var
|
|
6000
|
+
var import_react42 = require("react");
|
|
6042
6001
|
var import_editor_canvas6 = require("@elementor/editor-canvas");
|
|
6043
6002
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
6044
6003
|
var import_ui46 = require("@elementor/ui");
|
|
6045
|
-
var
|
|
6004
|
+
var import_i18n66 = require("@wordpress/i18n");
|
|
6046
6005
|
|
|
6047
6006
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
6048
|
-
var
|
|
6007
|
+
var import_react41 = require("react");
|
|
6049
6008
|
var import_editor_canvas4 = require("@elementor/editor-canvas");
|
|
6050
6009
|
var import_editor_styles8 = require("@elementor/editor-styles");
|
|
6051
6010
|
var import_editor_styles_repository14 = require("@elementor/editor-styles-repository");
|
|
6052
|
-
var
|
|
6011
|
+
var import_i18n64 = require("@wordpress/i18n");
|
|
6053
6012
|
var MAXIMUM_ITEMS = 2;
|
|
6054
6013
|
var useNormalizedInheritanceChainItems = (inheritanceChain, bind, resolve) => {
|
|
6055
|
-
const [items3, setItems] = (0,
|
|
6056
|
-
(0,
|
|
6014
|
+
const [items3, setItems] = (0, import_react41.useState)([]);
|
|
6015
|
+
(0, import_react41.useEffect)(() => {
|
|
6057
6016
|
(async () => {
|
|
6058
6017
|
const normalizedItems = await Promise.all(
|
|
6059
6018
|
inheritanceChain.filter(({ style }) => style).map((item, index) => normalizeInheritanceItem(item, index, bind, resolve))
|
|
6060
6019
|
);
|
|
6061
6020
|
const validItems = normalizedItems.map((item) => ({
|
|
6062
6021
|
...item,
|
|
6063
|
-
displayLabel: import_editor_styles_repository14.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0,
|
|
6022
|
+
displayLabel: import_editor_styles_repository14.ELEMENTS_BASE_STYLES_PROVIDER_KEY !== item.provider ? item.displayLabel : (0, import_i18n64.__)("Base", "elementor")
|
|
6064
6023
|
})).filter((item) => !item.value || item.displayLabel !== "").slice(0, MAXIMUM_ITEMS);
|
|
6065
6024
|
setItems(validItems);
|
|
6066
6025
|
})();
|
|
@@ -6104,7 +6063,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6104
6063
|
}
|
|
6105
6064
|
});
|
|
6106
6065
|
const value = result?.[bind] ?? result;
|
|
6107
|
-
if ((0,
|
|
6066
|
+
if ((0, import_react41.isValidElement)(value)) {
|
|
6108
6067
|
return value;
|
|
6109
6068
|
}
|
|
6110
6069
|
if (typeof value === "object") {
|
|
@@ -6152,11 +6111,11 @@ var React93 = __toESM(require("react"));
|
|
|
6152
6111
|
var import_editor_styles_repository15 = require("@elementor/editor-styles-repository");
|
|
6153
6112
|
var import_icons29 = require("@elementor/icons");
|
|
6154
6113
|
var import_ui43 = require("@elementor/ui");
|
|
6155
|
-
var
|
|
6114
|
+
var import_i18n65 = require("@wordpress/i18n");
|
|
6156
6115
|
var SIZE6 = "tiny";
|
|
6157
6116
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6158
6117
|
const isBaseStyle = provider === import_editor_styles_repository15.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6159
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */ React93.createElement(import_ui43.Tooltip, { title: (0,
|
|
6118
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React93.createElement(import_ui43.Tooltip, { title: (0, import_i18n65.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React93.createElement(import_icons29.InfoCircleIcon, { fontSize: SIZE6 })) : void 0;
|
|
6160
6119
|
return /* @__PURE__ */ React93.createElement(
|
|
6161
6120
|
import_ui43.Chip,
|
|
6162
6121
|
{
|
|
@@ -6229,8 +6188,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6229
6188
|
children,
|
|
6230
6189
|
isDisabled
|
|
6231
6190
|
}) => {
|
|
6232
|
-
const [showInfotip, setShowInfotip] = (0,
|
|
6233
|
-
const triggerRef = (0,
|
|
6191
|
+
const [showInfotip, setShowInfotip] = (0, import_react42.useState)(false);
|
|
6192
|
+
const triggerRef = (0, import_react42.useRef)(null);
|
|
6234
6193
|
const toggleInfotip = () => {
|
|
6235
6194
|
if (isDisabled) {
|
|
6236
6195
|
return;
|
|
@@ -6245,7 +6204,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6245
6204
|
};
|
|
6246
6205
|
const key = path.join(".");
|
|
6247
6206
|
const sectionWidth = (0, import_editor_ui12.useSectionWidth)();
|
|
6248
|
-
const resolve = (0,
|
|
6207
|
+
const resolve = (0, import_react42.useMemo)(() => {
|
|
6249
6208
|
return (0, import_editor_canvas6.createPropsResolver)({
|
|
6250
6209
|
transformers: stylesInheritanceTransformersRegistry,
|
|
6251
6210
|
schema: { [key]: propType }
|
|
@@ -6275,7 +6234,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6275
6234
|
backgroundColor: "background.paper"
|
|
6276
6235
|
}
|
|
6277
6236
|
},
|
|
6278
|
-
/* @__PURE__ */ React96.createElement(import_editor_ui12.PopoverHeader, { title: (0,
|
|
6237
|
+
/* @__PURE__ */ React96.createElement(import_editor_ui12.PopoverHeader, { title: (0, import_i18n66.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
6279
6238
|
),
|
|
6280
6239
|
/* @__PURE__ */ React96.createElement(
|
|
6281
6240
|
import_ui46.CardContent,
|
|
@@ -6299,7 +6258,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6299
6258
|
display: "flex",
|
|
6300
6259
|
gap: 0.5,
|
|
6301
6260
|
role: "listitem",
|
|
6302
|
-
"aria-label": (0,
|
|
6261
|
+
"aria-label": (0, import_i18n66.__)("Inheritance item: %s", "elementor").replace(
|
|
6303
6262
|
"%s",
|
|
6304
6263
|
item.displayLabel
|
|
6305
6264
|
)
|
|
@@ -6400,7 +6359,7 @@ function TooltipOrInfotip({
|
|
|
6400
6359
|
children
|
|
6401
6360
|
));
|
|
6402
6361
|
}
|
|
6403
|
-
return /* @__PURE__ */ React96.createElement(import_ui46.Tooltip, { title: (0,
|
|
6362
|
+
return /* @__PURE__ */ React96.createElement(import_ui46.Tooltip, { title: (0, import_i18n66.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
6404
6363
|
}
|
|
6405
6364
|
|
|
6406
6365
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -6443,12 +6402,12 @@ var Indicator = ({ inheritanceChain, path, propType, isDisabled }) => {
|
|
|
6443
6402
|
};
|
|
6444
6403
|
var getLabel = ({ isFinalValue, hasValue }) => {
|
|
6445
6404
|
if (isFinalValue) {
|
|
6446
|
-
return (0,
|
|
6405
|
+
return (0, import_i18n67.__)("This is the final value", "elementor");
|
|
6447
6406
|
}
|
|
6448
6407
|
if (hasValue) {
|
|
6449
|
-
return (0,
|
|
6408
|
+
return (0, import_i18n67.__)("This value is overridden by another style", "elementor");
|
|
6450
6409
|
}
|
|
6451
|
-
return (0,
|
|
6410
|
+
return (0, import_i18n67.__)("This has value from another style", "elementor");
|
|
6452
6411
|
};
|
|
6453
6412
|
|
|
6454
6413
|
// src/styles-inheritance/init-styles-inheritance-transformers.ts
|
|
@@ -6499,7 +6458,7 @@ var StyledUnstableColorIndicator = (0, import_ui48.styled)(import_ui48.UnstableC
|
|
|
6499
6458
|
var React100 = __toESM(require("react"));
|
|
6500
6459
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
6501
6460
|
var import_ui49 = require("@elementor/ui");
|
|
6502
|
-
var
|
|
6461
|
+
var import_i18n68 = require("@wordpress/i18n");
|
|
6503
6462
|
var backgroundGradientOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React100.createElement(import_ui49.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React100.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React100.createElement(ItemLabelGradient, { value })));
|
|
6504
6463
|
var ItemIconGradient = ({ value }) => {
|
|
6505
6464
|
const gradient = getGradientValue(value);
|
|
@@ -6507,9 +6466,9 @@ var ItemIconGradient = ({ value }) => {
|
|
|
6507
6466
|
};
|
|
6508
6467
|
var ItemLabelGradient = ({ value }) => {
|
|
6509
6468
|
if (value.type === "linear") {
|
|
6510
|
-
return /* @__PURE__ */ React100.createElement("span", null, (0,
|
|
6469
|
+
return /* @__PURE__ */ React100.createElement("span", null, (0, import_i18n68.__)("Linear gradient", "elementor"));
|
|
6511
6470
|
}
|
|
6512
|
-
return /* @__PURE__ */ React100.createElement("span", null, (0,
|
|
6471
|
+
return /* @__PURE__ */ React100.createElement("span", null, (0, import_i18n68.__)("Radial gradient", "elementor"));
|
|
6513
6472
|
};
|
|
6514
6473
|
var getGradientValue = (gradient) => {
|
|
6515
6474
|
const stops = gradient.stops?.map(({ color, offset }) => `${color} ${offset ?? 0}%`)?.join(",");
|
|
@@ -6693,7 +6652,7 @@ function init4() {
|
|
|
6693
6652
|
init();
|
|
6694
6653
|
}
|
|
6695
6654
|
var blockV1Panel = () => {
|
|
6696
|
-
(0,
|
|
6655
|
+
(0, import_editor_v1_adapters11.blockCommand)({
|
|
6697
6656
|
command: "panel/editor/open",
|
|
6698
6657
|
condition: isAtomicWidgetSelected
|
|
6699
6658
|
});
|
|
@@ -6735,7 +6694,6 @@ var blockV1Panel = () => {
|
|
|
6735
6694
|
useClassesProp,
|
|
6736
6695
|
useCustomCss,
|
|
6737
6696
|
useElement,
|
|
6738
|
-
useFontFamilies,
|
|
6739
6697
|
usePanelActions,
|
|
6740
6698
|
usePanelStatus,
|
|
6741
6699
|
useStateByElement,
|