@elementor/editor-editing-panel 4.1.0-827 → 4.1.0-828
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +176 -160
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +77 -61
- package/dist/index.mjs.map +1 -1
- package/package.json +24 -24
- package/src/components/section-content.tsx +9 -2
- package/src/components/style-sections/position-section/position-field.tsx +2 -6
- package/src/components/style-sections/position-section/position-section.tsx +82 -85
- package/src/controls-registry/conditional-field.tsx +4 -1
package/dist/index.js
CHANGED
|
@@ -1824,7 +1824,7 @@ var import_icons25 = require("@elementor/icons");
|
|
|
1824
1824
|
var import_locations4 = require("@elementor/locations");
|
|
1825
1825
|
var import_menus = require("@elementor/menus");
|
|
1826
1826
|
var import_session9 = require("@elementor/session");
|
|
1827
|
-
var
|
|
1827
|
+
var import_ui42 = require("@elementor/ui");
|
|
1828
1828
|
var import_i18n61 = require("@wordpress/i18n");
|
|
1829
1829
|
|
|
1830
1830
|
// src/editing-panel-replacement-registry.tsx
|
|
@@ -1851,7 +1851,7 @@ var import_react38 = require("react");
|
|
|
1851
1851
|
var React86 = __toESM(require("react"));
|
|
1852
1852
|
var import_editor_elements12 = require("@elementor/editor-elements");
|
|
1853
1853
|
var import_editor_v1_adapters9 = require("@elementor/editor-v1-adapters");
|
|
1854
|
-
var
|
|
1854
|
+
var import_ui41 = require("@elementor/ui");
|
|
1855
1855
|
var import_i18n60 = require("@wordpress/i18n");
|
|
1856
1856
|
|
|
1857
1857
|
// src/contexts/scroll-context.tsx
|
|
@@ -2536,7 +2536,7 @@ var import_editor_props14 = require("@elementor/editor-props");
|
|
|
2536
2536
|
var import_editor_responsive3 = require("@elementor/editor-responsive");
|
|
2537
2537
|
var import_locations3 = require("@elementor/locations");
|
|
2538
2538
|
var import_session8 = require("@elementor/session");
|
|
2539
|
-
var
|
|
2539
|
+
var import_ui40 = require("@elementor/ui");
|
|
2540
2540
|
var import_i18n59 = require("@wordpress/i18n");
|
|
2541
2541
|
|
|
2542
2542
|
// src/contexts/styles-inheritance-context.tsx
|
|
@@ -2905,7 +2905,7 @@ function useSyncDepsWithInherited({
|
|
|
2905
2905
|
const syncRef = (0, import_react21.useRef)({ hasSynced: false, prevDepValues: depValues });
|
|
2906
2906
|
(0, import_react21.useEffect)(() => {
|
|
2907
2907
|
const { hasSynced, prevDepValues } = syncRef.current;
|
|
2908
|
-
if (hasSynced && value && wasDepsCleared(prevDepValues, depValues)) {
|
|
2908
|
+
if (hasSynced && value && wasDepsCleared(prevDepValues, depValues) || isHidden && depValues && value) {
|
|
2909
2909
|
resetValue();
|
|
2910
2910
|
}
|
|
2911
2911
|
if (isHidden || !value || !depValues) {
|
|
@@ -3018,7 +3018,13 @@ var StylesField = ({ bind, propDisplayName, children }) => {
|
|
|
3018
3018
|
// src/components/section-content.tsx
|
|
3019
3019
|
var React26 = __toESM(require("react"));
|
|
3020
3020
|
var import_ui15 = require("@elementor/ui");
|
|
3021
|
-
var SectionContent = ({
|
|
3021
|
+
var SectionContent = ({
|
|
3022
|
+
gap = 2,
|
|
3023
|
+
sx,
|
|
3024
|
+
children,
|
|
3025
|
+
"aria-label": ariaLabel,
|
|
3026
|
+
className
|
|
3027
|
+
}) => /* @__PURE__ */ React26.createElement(import_ui15.Stack, { gap, sx: { ...sx }, "aria-label": ariaLabel, className }, children);
|
|
3022
3028
|
|
|
3023
3029
|
// src/components/style-sections/background-section/background-section.tsx
|
|
3024
3030
|
var BACKGROUND_LABEL = (0, import_i18n9.__)("Background", "elementor");
|
|
@@ -4327,6 +4333,7 @@ var shouldDisplayFlexFields = (display, local) => {
|
|
|
4327
4333
|
var React60 = __toESM(require("react"));
|
|
4328
4334
|
var import_react30 = require("react");
|
|
4329
4335
|
var import_session7 = require("@elementor/session");
|
|
4336
|
+
var import_ui35 = require("@elementor/ui");
|
|
4330
4337
|
var import_i18n38 = require("@wordpress/i18n");
|
|
4331
4338
|
|
|
4332
4339
|
// src/components/style-sections/position-section/dimensions-field.tsx
|
|
@@ -4403,8 +4410,8 @@ var positionOptions = [
|
|
|
4403
4410
|
{ label: (0, import_i18n36.__)("Fixed", "elementor"), value: "fixed" },
|
|
4404
4411
|
{ label: (0, import_i18n36.__)("Sticky", "elementor"), value: "sticky" }
|
|
4405
4412
|
];
|
|
4406
|
-
var PositionField = (
|
|
4407
|
-
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(import_editor_controls33.SelectControl, { options: positionOptions
|
|
4413
|
+
var PositionField = () => {
|
|
4414
|
+
return /* @__PURE__ */ React58.createElement(StylesField, { bind: "position", propDisplayName: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(StylesFieldLayout, { label: POSITION_LABEL }, /* @__PURE__ */ React58.createElement(import_editor_controls33.SelectControl, { options: positionOptions })));
|
|
4408
4415
|
};
|
|
4409
4416
|
|
|
4410
4417
|
// src/components/style-sections/position-section/z-index-field.tsx
|
|
@@ -4436,63 +4443,32 @@ var ZIndexField = ({ disabled }) => {
|
|
|
4436
4443
|
var POSITION_STATIC = "static";
|
|
4437
4444
|
var POSITION_LABEL2 = (0, import_i18n38.__)("Position", "elementor");
|
|
4438
4445
|
var DIMENSIONS_LABEL = (0, import_i18n38.__)("Dimensions", "elementor");
|
|
4439
|
-
var
|
|
4446
|
+
var DEPENDENT_PROP_NAMES = [
|
|
4440
4447
|
"inset-block-start",
|
|
4441
4448
|
"inset-block-end",
|
|
4442
4449
|
"inset-inline-start",
|
|
4443
4450
|
"inset-inline-end",
|
|
4444
4451
|
"z-index"
|
|
4445
4452
|
];
|
|
4446
|
-
var CLEARED_POSITION_DEPENDENT_VALUES = {
|
|
4447
|
-
"inset-block-start": null,
|
|
4448
|
-
"inset-block-end": null,
|
|
4449
|
-
"inset-inline-start": null,
|
|
4450
|
-
"inset-inline-end": null,
|
|
4451
|
-
"z-index": null
|
|
4452
|
-
};
|
|
4453
4453
|
var PositionSection = () => {
|
|
4454
|
-
const { value:
|
|
4455
|
-
|
|
4456
|
-
});
|
|
4457
|
-
const
|
|
4458
|
-
const [dimensionsValuesFromHistory, updateDimensionsHistory, clearDimensionsHistory] = usePersistDimensions();
|
|
4459
|
-
const clearPositionDependentProps = (0, import_react30.useCallback)(() => {
|
|
4460
|
-
const dimensions = {
|
|
4461
|
-
"inset-block-start": positionDependentValues?.["inset-block-start"],
|
|
4462
|
-
"inset-block-end": positionDependentValues?.["inset-block-end"],
|
|
4463
|
-
"inset-inline-start": positionDependentValues?.["inset-inline-start"],
|
|
4464
|
-
"inset-inline-end": positionDependentValues?.["inset-inline-end"]
|
|
4465
|
-
};
|
|
4466
|
-
const meta = { history: { propDisplayName: DIMENSIONS_LABEL } };
|
|
4467
|
-
const hasValuesToClear = Object.values(dimensions).some((v) => v !== null) || positionDependentValues?.["z-index"] !== null;
|
|
4468
|
-
if (hasValuesToClear) {
|
|
4469
|
-
updateDimensionsHistory(dimensions);
|
|
4470
|
-
setPositionDependentValues(CLEARED_POSITION_DEPENDENT_VALUES, meta);
|
|
4471
|
-
}
|
|
4472
|
-
}, [positionDependentValues, updateDimensionsHistory, setPositionDependentValues]);
|
|
4473
|
-
const clearPositionDependentPropsRef = (0, import_react30.useRef)(clearPositionDependentProps);
|
|
4474
|
-
clearPositionDependentPropsRef.current = clearPositionDependentProps;
|
|
4454
|
+
const { value: position } = useStylesField("position", withHistoryLabel(POSITION_LABEL2));
|
|
4455
|
+
const positionPrevRef = (0, import_react30.useRef)(position);
|
|
4456
|
+
const { values: dependentValues, setValues: setDependentValues } = useStylesFields(DEPENDENT_PROP_NAMES);
|
|
4457
|
+
const [savedDependentValues, saveToHistory, clearHistory] = usePersistDimensions();
|
|
4475
4458
|
(0, import_react30.useEffect)(() => {
|
|
4476
|
-
if (
|
|
4477
|
-
|
|
4478
|
-
}
|
|
4479
|
-
}, [positionValue]);
|
|
4480
|
-
const onPositionChange = (newPosition, previousPosition) => {
|
|
4481
|
-
const meta = { history: { propDisplayName: DIMENSIONS_LABEL } };
|
|
4482
|
-
if (newPosition === POSITION_STATIC) {
|
|
4483
|
-
clearPositionDependentProps();
|
|
4484
|
-
} else if (previousPosition === POSITION_STATIC) {
|
|
4485
|
-
if (dimensionsValuesFromHistory) {
|
|
4486
|
-
setPositionDependentValues(
|
|
4487
|
-
{ ...dimensionsValuesFromHistory, "z-index": void 0 },
|
|
4488
|
-
meta
|
|
4489
|
-
);
|
|
4490
|
-
clearDimensionsHistory();
|
|
4491
|
-
}
|
|
4459
|
+
if (position && position?.value === POSITION_STATIC && hasDependentValues(dependentValues)) {
|
|
4460
|
+
saveToHistory(extractDimensions(dependentValues));
|
|
4492
4461
|
}
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4462
|
+
if (positionPrevRef.current?.value === POSITION_STATIC) {
|
|
4463
|
+
setDependentValues({ ...savedDependentValues }, withHistoryLabel(DIMENSIONS_LABEL));
|
|
4464
|
+
clearHistory();
|
|
4465
|
+
}
|
|
4466
|
+
if ((!position || position?.value === POSITION_STATIC) && dependentValues?.["z-index"]) {
|
|
4467
|
+
setDependentValues({ "z-index": null }, withHistoryLabel(DIMENSIONS_LABEL));
|
|
4468
|
+
}
|
|
4469
|
+
positionPrevRef.current = position;
|
|
4470
|
+
}, [position?.value]);
|
|
4471
|
+
return /* @__PURE__ */ React60.createElement(StyledSectionContent, null, /* @__PURE__ */ React60.createElement(PositionField, null), /* @__PURE__ */ React60.createElement(DimensionsField, null), /* @__PURE__ */ React60.createElement(ZIndexField, { disabled: !position || position?.value === POSITION_STATIC }), /* @__PURE__ */ React60.createElement(PanelDivider, null), /* @__PURE__ */ React60.createElement(OffsetField, null));
|
|
4496
4472
|
};
|
|
4497
4473
|
var usePersistDimensions = () => {
|
|
4498
4474
|
const { id: styleDefID, meta } = useStyle();
|
|
@@ -4500,12 +4476,52 @@ var usePersistDimensions = () => {
|
|
|
4500
4476
|
const dimensionsPath = `${styleVariantPath}/dimensions`;
|
|
4501
4477
|
return (0, import_session7.useSessionStorage)(dimensionsPath);
|
|
4502
4478
|
};
|
|
4479
|
+
var withHistoryLabel = (name) => {
|
|
4480
|
+
return {
|
|
4481
|
+
history: { propDisplayName: name }
|
|
4482
|
+
};
|
|
4483
|
+
};
|
|
4484
|
+
var hasDependentValues = (values) => {
|
|
4485
|
+
if (!values) {
|
|
4486
|
+
return false;
|
|
4487
|
+
}
|
|
4488
|
+
const dimensions = extractDimensions(values);
|
|
4489
|
+
return Object.values(dimensions).some((v) => v !== null);
|
|
4490
|
+
};
|
|
4491
|
+
var extractDimensions = (values) => {
|
|
4492
|
+
return DEPENDENT_PROP_NAMES.reduce((acc, key) => {
|
|
4493
|
+
return {
|
|
4494
|
+
...acc,
|
|
4495
|
+
[key]: values?.[key] ?? null
|
|
4496
|
+
};
|
|
4497
|
+
}, {});
|
|
4498
|
+
};
|
|
4499
|
+
var StyledSectionContent = (0, import_ui35.styled)(SectionContent, {
|
|
4500
|
+
shouldForwardProp: (prop) => prop !== "gap"
|
|
4501
|
+
})(({ gap = 2, theme }) => ({
|
|
4502
|
+
gap: 0,
|
|
4503
|
+
"& > *": {
|
|
4504
|
+
marginBottom: theme.spacing(gap)
|
|
4505
|
+
},
|
|
4506
|
+
"& > *:last-child": {
|
|
4507
|
+
marginBottom: 0
|
|
4508
|
+
},
|
|
4509
|
+
"& > .MuiStack-root": {
|
|
4510
|
+
marginBottom: 0
|
|
4511
|
+
},
|
|
4512
|
+
"& > .MuiStack-root:has(> *)": {
|
|
4513
|
+
marginBottom: theme.spacing(gap)
|
|
4514
|
+
},
|
|
4515
|
+
"& > .MuiDivider-root": {
|
|
4516
|
+
marginBottom: theme.spacing(gap)
|
|
4517
|
+
}
|
|
4518
|
+
}));
|
|
4503
4519
|
|
|
4504
4520
|
// src/components/style-sections/size-section/size-section.tsx
|
|
4505
4521
|
var React65 = __toESM(require("react"));
|
|
4506
4522
|
var import_react31 = require("react");
|
|
4507
4523
|
var import_editor_controls37 = require("@elementor/editor-controls");
|
|
4508
|
-
var
|
|
4524
|
+
var import_ui37 = require("@elementor/ui");
|
|
4509
4525
|
var import_i18n42 = require("@wordpress/i18n");
|
|
4510
4526
|
|
|
4511
4527
|
// src/components/style-tab-collapsible-content.tsx
|
|
@@ -4515,7 +4531,7 @@ var import_editor_ui6 = require("@elementor/editor-ui");
|
|
|
4515
4531
|
// src/styles-inheritance/components/styles-inheritance-section-indicators.tsx
|
|
4516
4532
|
var React61 = __toESM(require("react"));
|
|
4517
4533
|
var import_editor_styles_repository14 = require("@elementor/editor-styles-repository");
|
|
4518
|
-
var
|
|
4534
|
+
var import_ui36 = require("@elementor/ui");
|
|
4519
4535
|
var import_i18n39 = require("@wordpress/i18n");
|
|
4520
4536
|
var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
4521
4537
|
const { id, meta, provider } = useStyle();
|
|
@@ -4532,7 +4548,7 @@ var StylesInheritanceSectionIndicators = ({ fields }) => {
|
|
|
4532
4548
|
}
|
|
4533
4549
|
const hasValueLabel = (0, import_i18n39.__)("Has effective styles", "elementor");
|
|
4534
4550
|
const hasOverridesLabel = (0, import_i18n39.__)("Has overridden styles", "elementor");
|
|
4535
|
-
return /* @__PURE__ */ React61.createElement(
|
|
4551
|
+
return /* @__PURE__ */ React61.createElement(import_ui36.Tooltip, { title: (0, import_i18n39.__)("Has styles", "elementor"), placement: "top" }, /* @__PURE__ */ React61.createElement(import_ui36.Stack, { direction: "row", sx: { "& > *": { marginInlineStart: -0.25 } }, role: "list" }, hasValues && provider && /* @__PURE__ */ React61.createElement(
|
|
4536
4552
|
StyleIndicator,
|
|
4537
4553
|
{
|
|
4538
4554
|
getColor: getStylesProviderThemeColor(provider.getKey()),
|
|
@@ -4671,10 +4687,10 @@ var CssSizeProps = [
|
|
|
4671
4687
|
var ASPECT_RATIO_LABEL = (0, import_i18n42.__)("Aspect Ratio", "elementor");
|
|
4672
4688
|
var SizeSection = () => {
|
|
4673
4689
|
const gridRowRefs = [(0, import_react31.useRef)(null), (0, import_react31.useRef)(null), (0, import_react31.useRef)(null)];
|
|
4674
|
-
return /* @__PURE__ */ React65.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React65.createElement(
|
|
4690
|
+
return /* @__PURE__ */ React65.createElement(SectionContent, null, CssSizeProps.map((row, rowIndex) => /* @__PURE__ */ React65.createElement(import_ui37.Grid, { key: rowIndex, container: true, gap: 2, flexWrap: "nowrap", ref: gridRowRefs[rowIndex] }, row.map((props) => /* @__PURE__ */ React65.createElement(import_ui37.Grid, { item: true, xs: 6, key: props.bind }, /* @__PURE__ */ React65.createElement(SizeField, { ...props, rowRef: gridRowRefs[rowIndex], extendedOptions: ["auto"] }))))), /* @__PURE__ */ React65.createElement(PanelDivider, null), /* @__PURE__ */ React65.createElement(import_ui37.Stack, null, /* @__PURE__ */ React65.createElement(OverflowField, null)), /* @__PURE__ */ React65.createElement(StyleTabCollapsibleContent, { fields: ["aspect-ratio", "object-fit"] }, /* @__PURE__ */ React65.createElement(import_ui37.Stack, { gap: 2, pt: 2 }, /* @__PURE__ */ React65.createElement(StylesField, { bind: "aspect-ratio", propDisplayName: ASPECT_RATIO_LABEL }, /* @__PURE__ */ React65.createElement(import_editor_controls37.AspectRatioControl, { label: ASPECT_RATIO_LABEL })), /* @__PURE__ */ React65.createElement(PanelDivider, null), /* @__PURE__ */ React65.createElement(ObjectFitField, null), /* @__PURE__ */ React65.createElement(StylesField, { bind: "object-position", propDisplayName: (0, import_i18n42.__)("Object position", "elementor") }, /* @__PURE__ */ React65.createElement(import_ui37.Grid, { item: true, xs: 6 }, /* @__PURE__ */ React65.createElement(import_editor_controls37.PositionControl, null))))));
|
|
4675
4691
|
};
|
|
4676
4692
|
var SizeField = ({ label, bind, rowRef, extendedOptions }) => {
|
|
4677
|
-
return /* @__PURE__ */ React65.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React65.createElement(
|
|
4693
|
+
return /* @__PURE__ */ React65.createElement(StylesField, { bind, propDisplayName: label }, /* @__PURE__ */ React65.createElement(import_ui37.Grid, { container: true, gap: 0.75, alignItems: "center" }, /* @__PURE__ */ React65.createElement(import_ui37.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React65.createElement(ControlLabel, null, label)), /* @__PURE__ */ React65.createElement(import_ui37.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React65.createElement(import_editor_controls37.SizeControl, { extendedOptions, anchorRef: rowRef }))));
|
|
4678
4694
|
};
|
|
4679
4695
|
|
|
4680
4696
|
// src/components/style-sections/spacing-section/spacing-section.tsx
|
|
@@ -4821,11 +4837,11 @@ var LineHeightField = () => {
|
|
|
4821
4837
|
var React75 = __toESM(require("react"));
|
|
4822
4838
|
var import_editor_controls47 = require("@elementor/editor-controls");
|
|
4823
4839
|
var import_icons20 = require("@elementor/icons");
|
|
4824
|
-
var
|
|
4840
|
+
var import_ui38 = require("@elementor/ui");
|
|
4825
4841
|
var import_i18n52 = require("@wordpress/i18n");
|
|
4826
4842
|
var TEXT_ALIGNMENT_LABEL = (0, import_i18n52.__)("Text align", "elementor");
|
|
4827
|
-
var AlignStartIcon = (0,
|
|
4828
|
-
var AlignEndIcon = (0,
|
|
4843
|
+
var AlignStartIcon = (0, import_ui38.withDirection)(import_icons20.AlignLeftIcon);
|
|
4844
|
+
var AlignEndIcon = (0, import_ui38.withDirection)(import_icons20.AlignRightIcon);
|
|
4829
4845
|
var options9 = [
|
|
4830
4846
|
{
|
|
4831
4847
|
value: "start",
|
|
@@ -4932,7 +4948,7 @@ var import_i18n56 = require("@wordpress/i18n");
|
|
|
4932
4948
|
// src/components/add-or-remove-content.tsx
|
|
4933
4949
|
var React79 = __toESM(require("react"));
|
|
4934
4950
|
var import_icons23 = require("@elementor/icons");
|
|
4935
|
-
var
|
|
4951
|
+
var import_ui39 = require("@elementor/ui");
|
|
4936
4952
|
var SIZE = "tiny";
|
|
4937
4953
|
var AddOrRemoveContent = ({
|
|
4938
4954
|
isAdded,
|
|
@@ -4943,7 +4959,7 @@ var AddOrRemoveContent = ({
|
|
|
4943
4959
|
renderLabel
|
|
4944
4960
|
}) => {
|
|
4945
4961
|
return /* @__PURE__ */ React79.createElement(SectionContent, null, /* @__PURE__ */ React79.createElement(
|
|
4946
|
-
|
|
4962
|
+
import_ui39.Stack,
|
|
4947
4963
|
{
|
|
4948
4964
|
direction: "row",
|
|
4949
4965
|
sx: {
|
|
@@ -4953,8 +4969,8 @@ var AddOrRemoveContent = ({
|
|
|
4953
4969
|
}
|
|
4954
4970
|
},
|
|
4955
4971
|
renderLabel(),
|
|
4956
|
-
isAdded ? /* @__PURE__ */ React79.createElement(
|
|
4957
|
-
), /* @__PURE__ */ React79.createElement(
|
|
4972
|
+
isAdded ? /* @__PURE__ */ React79.createElement(import_ui39.IconButton, { size: SIZE, onClick: onRemove, "aria-label": "Remove", disabled }, /* @__PURE__ */ React79.createElement(import_icons23.MinusIcon, { fontSize: SIZE })) : /* @__PURE__ */ React79.createElement(import_ui39.IconButton, { size: SIZE, onClick: onAdd, "aria-label": "Add", disabled }, /* @__PURE__ */ React79.createElement(import_icons23.PlusIcon, { fontSize: SIZE }))
|
|
4973
|
+
), /* @__PURE__ */ React79.createElement(import_ui39.Collapse, { in: isAdded, unmountOnExit: true }, /* @__PURE__ */ React79.createElement(SectionContent, null, children)));
|
|
4958
4974
|
};
|
|
4959
4975
|
|
|
4960
4976
|
// src/components/style-sections/typography-section/text-stroke-field.tsx
|
|
@@ -5114,7 +5130,7 @@ var StyleTab = () => {
|
|
|
5114
5130
|
},
|
|
5115
5131
|
setMetaState: setActiveStyleState
|
|
5116
5132
|
},
|
|
5117
|
-
/* @__PURE__ */ React85.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React85.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React85.createElement(ClassesHeader, null, /* @__PURE__ */ React85.createElement(CssClassSelector, null), /* @__PURE__ */ React85.createElement(
|
|
5133
|
+
/* @__PURE__ */ React85.createElement(import_session8.SessionStorageProvider, { prefix: activeStyleDefId ?? "" }, /* @__PURE__ */ React85.createElement(StyleInheritanceProvider, null, /* @__PURE__ */ React85.createElement(ClassesHeader, null, /* @__PURE__ */ React85.createElement(CssClassSelector, null), /* @__PURE__ */ React85.createElement(import_ui40.Divider, null)), /* @__PURE__ */ React85.createElement(SectionsList, null, /* @__PURE__ */ React85.createElement(
|
|
5118
5134
|
StyleTabSection,
|
|
5119
5135
|
{
|
|
5120
5136
|
section: {
|
|
@@ -5240,12 +5256,12 @@ var StyleTab = () => {
|
|
|
5240
5256
|
"transition"
|
|
5241
5257
|
]
|
|
5242
5258
|
}
|
|
5243
|
-
), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(
|
|
5259
|
+
), /* @__PURE__ */ React85.createElement(StyleTabSlot, null)), /* @__PURE__ */ React85.createElement(import_ui40.Box, { sx: { height: "150px" } })))
|
|
5244
5260
|
));
|
|
5245
5261
|
};
|
|
5246
5262
|
function ClassesHeader({ children }) {
|
|
5247
5263
|
const scrollDirection = useScrollDirection();
|
|
5248
|
-
return /* @__PURE__ */ React85.createElement(
|
|
5264
|
+
return /* @__PURE__ */ React85.createElement(import_ui40.Stack, { sx: { ...stickyHeaderStyles, top: scrollDirection === "up" ? TABS_HEADER_HEIGHT : 0 } }, children);
|
|
5249
5265
|
}
|
|
5250
5266
|
function useCurrentClassesProp() {
|
|
5251
5267
|
const { elementType } = useElement();
|
|
@@ -5275,9 +5291,9 @@ var PanelTabContent = () => {
|
|
|
5275
5291
|
const isPromotedElement = !!(0, import_editor_elements12.getWidgetsCache)()?.[element.type]?.meta?.is_pro_promotion;
|
|
5276
5292
|
const [storedTab, setCurrentTab] = useStateByElement("tab", defaultComponentTab);
|
|
5277
5293
|
const currentTab = isPromotedElement && storedTab === "settings" ? "style" : storedTab;
|
|
5278
|
-
const { getTabProps, getTabPanelProps, getTabsProps } = (0,
|
|
5279
|
-
return /* @__PURE__ */ React86.createElement(ScrollProvider, null, /* @__PURE__ */ React86.createElement(
|
|
5280
|
-
|
|
5294
|
+
const { getTabProps, getTabPanelProps, getTabsProps } = (0, import_ui41.useTabs)(currentTab);
|
|
5295
|
+
return /* @__PURE__ */ React86.createElement(ScrollProvider, null, /* @__PURE__ */ React86.createElement(import_ui41.Stack, { direction: "column", sx: { width: "100%" } }, /* @__PURE__ */ React86.createElement(import_ui41.Stack, { sx: { ...stickyHeaderStyles, top: 0 } }, /* @__PURE__ */ React86.createElement(
|
|
5296
|
+
import_ui41.Tabs,
|
|
5281
5297
|
{
|
|
5282
5298
|
variant: "fullWidth",
|
|
5283
5299
|
size: "small",
|
|
@@ -5288,10 +5304,10 @@ var PanelTabContent = () => {
|
|
|
5288
5304
|
setCurrentTab(newValue);
|
|
5289
5305
|
}
|
|
5290
5306
|
},
|
|
5291
|
-
!isPromotedElement && /* @__PURE__ */ React86.createElement(
|
|
5292
|
-
/* @__PURE__ */ React86.createElement(
|
|
5293
|
-
isInteractionsActive && /* @__PURE__ */ React86.createElement(
|
|
5294
|
-
), /* @__PURE__ */ React86.createElement(
|
|
5307
|
+
!isPromotedElement && /* @__PURE__ */ React86.createElement(import_ui41.Tab, { label: (0, import_i18n60.__)("General", "elementor"), ...getTabProps("settings") }),
|
|
5308
|
+
/* @__PURE__ */ React86.createElement(import_ui41.Tab, { label: (0, import_i18n60.__)("Style", "elementor"), ...getTabProps("style") }),
|
|
5309
|
+
isInteractionsActive && /* @__PURE__ */ React86.createElement(import_ui41.Tab, { label: (0, import_i18n60.__)("Interactions", "elementor"), ...getTabProps("interactions") })
|
|
5310
|
+
), /* @__PURE__ */ React86.createElement(import_ui41.Divider, null)), !isPromotedElement && /* @__PURE__ */ React86.createElement(import_ui41.TabPanel, { ...getTabPanelProps("settings"), disablePadding: true }, /* @__PURE__ */ React86.createElement(SettingsTab, null)), /* @__PURE__ */ React86.createElement(import_ui41.TabPanel, { ...getTabPanelProps("style"), disablePadding: true }, /* @__PURE__ */ React86.createElement(StyleTab, null)), isInteractionsActive && /* @__PURE__ */ React86.createElement(import_ui41.TabPanel, { ...getTabPanelProps("interactions"), disablePadding: true }, /* @__PURE__ */ React86.createElement(InteractionsTab, null))));
|
|
5295
5311
|
};
|
|
5296
5312
|
|
|
5297
5313
|
// src/components/editing-panel.tsx
|
|
@@ -5310,7 +5326,7 @@ var EditingPanel = () => {
|
|
|
5310
5326
|
if (ReplacementComponent) {
|
|
5311
5327
|
panelContent = /* @__PURE__ */ React87.createElement(ReplacementComponent, null);
|
|
5312
5328
|
}
|
|
5313
|
-
return /* @__PURE__ */ React87.createElement(
|
|
5329
|
+
return /* @__PURE__ */ React87.createElement(import_ui42.ErrorBoundary, { fallback: /* @__PURE__ */ React87.createElement(EditorPanelErrorFallback, null) }, /* @__PURE__ */ React87.createElement(import_session9.SessionStorageProvider, { prefix: "elementor" }, /* @__PURE__ */ React87.createElement(import_editor_ui8.ThemeProvider, null, /* @__PURE__ */ React87.createElement(import_editor_controls54.ControlActionsProvider, { items: menuItems }, /* @__PURE__ */ React87.createElement(import_editor_controls54.ControlReplacementsProvider, { replacements: controlReplacements }, /* @__PURE__ */ React87.createElement(ElementProvider, { element, elementType, settings }, /* @__PURE__ */ React87.createElement(import_editor_panels.Panel, null, /* @__PURE__ */ React87.createElement(PanelHeaderTopSlot, null), panelContent)))))));
|
|
5314
5330
|
};
|
|
5315
5331
|
|
|
5316
5332
|
// src/init.ts
|
|
@@ -5403,7 +5419,7 @@ var import_editor_controls58 = require("@elementor/editor-controls");
|
|
|
5403
5419
|
var import_editor_elements17 = require("@elementor/editor-elements");
|
|
5404
5420
|
var import_editor_props16 = require("@elementor/editor-props");
|
|
5405
5421
|
var import_icons26 = require("@elementor/icons");
|
|
5406
|
-
var
|
|
5422
|
+
var import_ui43 = require("@elementor/ui");
|
|
5407
5423
|
var import_i18n64 = require("@wordpress/i18n");
|
|
5408
5424
|
|
|
5409
5425
|
// src/controls-registry/element-controls/get-element-by-type.ts
|
|
@@ -5685,7 +5701,7 @@ var TabsControlContent = ({ label }) => {
|
|
|
5685
5701
|
};
|
|
5686
5702
|
var ItemLabel = ({ value, index }) => {
|
|
5687
5703
|
const elementTitle = value?.title;
|
|
5688
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5704
|
+
return /* @__PURE__ */ React89.createElement(import_ui43.Stack, { sx: { minHeight: 20 }, direction: "row", alignItems: "center", gap: 1.5 }, /* @__PURE__ */ React89.createElement("span", null, elementTitle), /* @__PURE__ */ React89.createElement(ItemDefaultTab, { index }));
|
|
5689
5705
|
};
|
|
5690
5706
|
var ItemDefaultTab = ({ index }) => {
|
|
5691
5707
|
const { value: defaultItem } = (0, import_editor_controls58.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
@@ -5693,19 +5709,19 @@ var ItemDefaultTab = ({ index }) => {
|
|
|
5693
5709
|
if (!isDefault) {
|
|
5694
5710
|
return null;
|
|
5695
5711
|
}
|
|
5696
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5712
|
+
return /* @__PURE__ */ React89.createElement(import_ui43.Chip, { size: "tiny", shape: "rounded", label: (0, import_i18n64.__)("Default", "elementor") });
|
|
5697
5713
|
};
|
|
5698
5714
|
var ItemContent = ({ value, index }) => {
|
|
5699
5715
|
if (!value.id) {
|
|
5700
5716
|
return null;
|
|
5701
5717
|
}
|
|
5702
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5718
|
+
return /* @__PURE__ */ React89.createElement(import_ui43.Stack, { p: 2, gap: 1.5 }, /* @__PURE__ */ React89.createElement(TabLabelControl, { elementId: value.id }), /* @__PURE__ */ React89.createElement(SettingsField, { bind: "default-active-tab", propDisplayName: (0, import_i18n64.__)("Tabs", "elementor") }, /* @__PURE__ */ React89.createElement(DefaultTabControl, { tabIndex: index })));
|
|
5703
5719
|
};
|
|
5704
5720
|
var DefaultTabControl = ({ tabIndex }) => {
|
|
5705
5721
|
const { value, setValue } = (0, import_editor_controls58.useBoundProp)(import_editor_props16.numberPropTypeUtil);
|
|
5706
5722
|
const isDefault = value === tabIndex;
|
|
5707
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5708
|
-
|
|
5723
|
+
return /* @__PURE__ */ React89.createElement(import_ui43.Stack, { direction: "row", alignItems: "center", justifyContent: "space-between", gap: 2 }, /* @__PURE__ */ React89.createElement(import_editor_controls58.ControlFormLabel, null, (0, import_i18n64.__)("Set as default tab", "elementor")), /* @__PURE__ */ React89.createElement(ConditionalTooltip, { showTooltip: isDefault, placement: "right" }, /* @__PURE__ */ React89.createElement(
|
|
5724
|
+
import_ui43.Switch,
|
|
5709
5725
|
{
|
|
5710
5726
|
size: "small",
|
|
5711
5727
|
checked: isDefault,
|
|
@@ -5722,8 +5738,8 @@ var DefaultTabControl = ({ tabIndex }) => {
|
|
|
5722
5738
|
var TabLabelControl = ({ elementId }) => {
|
|
5723
5739
|
const editorSettings = (0, import_editor_elements17.useElementEditorSettings)(elementId);
|
|
5724
5740
|
const label = editorSettings?.title ?? "";
|
|
5725
|
-
return /* @__PURE__ */ React89.createElement(
|
|
5726
|
-
|
|
5741
|
+
return /* @__PURE__ */ React89.createElement(import_ui43.Stack, { gap: 1 }, /* @__PURE__ */ React89.createElement(import_editor_controls58.ControlFormLabel, null, (0, import_i18n64.__)("Tab name", "elementor")), /* @__PURE__ */ React89.createElement(
|
|
5742
|
+
import_ui43.TextField,
|
|
5727
5743
|
{
|
|
5728
5744
|
size: "tiny",
|
|
5729
5745
|
value: label,
|
|
@@ -5744,18 +5760,18 @@ var ConditionalTooltip = ({
|
|
|
5744
5760
|
return children;
|
|
5745
5761
|
}
|
|
5746
5762
|
return /* @__PURE__ */ React89.createElement(
|
|
5747
|
-
|
|
5763
|
+
import_ui43.Infotip,
|
|
5748
5764
|
{
|
|
5749
5765
|
arrow: false,
|
|
5750
5766
|
content: /* @__PURE__ */ React89.createElement(
|
|
5751
|
-
|
|
5767
|
+
import_ui43.Alert,
|
|
5752
5768
|
{
|
|
5753
5769
|
color: "secondary",
|
|
5754
5770
|
icon: /* @__PURE__ */ React89.createElement(import_icons26.InfoCircleFilledIcon, { fontSize: "tiny" }),
|
|
5755
5771
|
size: "small",
|
|
5756
5772
|
sx: { width: 288 }
|
|
5757
5773
|
},
|
|
5758
|
-
/* @__PURE__ */ React89.createElement(
|
|
5774
|
+
/* @__PURE__ */ React89.createElement(import_ui43.Typography, { variant: "body2" }, (0, import_i18n64.__)("To change the default tab, simply set another tab as default.", "elementor"))
|
|
5759
5775
|
)
|
|
5760
5776
|
},
|
|
5761
5777
|
/* @__PURE__ */ React89.createElement("span", null, children)
|
|
@@ -5939,7 +5955,7 @@ var React94 = __toESM(require("react"));
|
|
|
5939
5955
|
var import_editor_controls63 = require("@elementor/editor-controls");
|
|
5940
5956
|
var import_editor_ui10 = require("@elementor/editor-ui");
|
|
5941
5957
|
var import_icons29 = require("@elementor/icons");
|
|
5942
|
-
var
|
|
5958
|
+
var import_ui45 = require("@elementor/ui");
|
|
5943
5959
|
var import_i18n66 = require("@wordpress/i18n");
|
|
5944
5960
|
|
|
5945
5961
|
// src/hooks/use-persist-dynamic-value.ts
|
|
@@ -6042,7 +6058,7 @@ var import_react45 = require("react");
|
|
|
6042
6058
|
var import_editor_controls62 = require("@elementor/editor-controls");
|
|
6043
6059
|
var import_editor_ui9 = require("@elementor/editor-ui");
|
|
6044
6060
|
var import_icons28 = require("@elementor/icons");
|
|
6045
|
-
var
|
|
6061
|
+
var import_ui44 = require("@elementor/ui");
|
|
6046
6062
|
var import_i18n65 = require("@wordpress/i18n");
|
|
6047
6063
|
var SIZE2 = "tiny";
|
|
6048
6064
|
var PROMO_TEXT_WIDTH = 170;
|
|
@@ -6051,7 +6067,7 @@ var RENEW_DYNAMIC_TAGS_URL = "https://go.elementor.com/go-pro-dynamic-tags-renew
|
|
|
6051
6067
|
var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
6052
6068
|
const [searchValue, setSearchValue] = (0, import_react45.useState)("");
|
|
6053
6069
|
const { groups: dynamicGroups } = getAtomicDynamicTags() || {};
|
|
6054
|
-
const theme = (0,
|
|
6070
|
+
const theme = (0, import_ui44.useTheme)();
|
|
6055
6071
|
const { value: anyValue } = (0, import_editor_controls62.useBoundProp)();
|
|
6056
6072
|
const { bind, value: dynamicValue, setValue } = (0, import_editor_controls62.useBoundProp)(dynamicPropTypeUtil);
|
|
6057
6073
|
const [, updatePropValueHistory] = usePersistDynamicValue(bind);
|
|
@@ -6102,7 +6118,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6102
6118
|
onSearch: handleSearch,
|
|
6103
6119
|
placeholder: (0, import_i18n65.__)("Search dynamic tags\u2026", "elementor")
|
|
6104
6120
|
}
|
|
6105
|
-
), /* @__PURE__ */ React93.createElement(
|
|
6121
|
+
), /* @__PURE__ */ React93.createElement(import_ui44.Divider, null), /* @__PURE__ */ React93.createElement(
|
|
6106
6122
|
import_editor_ui9.PopoverMenuList,
|
|
6107
6123
|
{
|
|
6108
6124
|
items: virtualizedItems,
|
|
@@ -6124,7 +6140,7 @@ var DynamicSelection = ({ close: closePopover, expired = false }) => {
|
|
|
6124
6140
|
), getPopOverContent());
|
|
6125
6141
|
};
|
|
6126
6142
|
var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElement(
|
|
6127
|
-
|
|
6143
|
+
import_ui44.Stack,
|
|
6128
6144
|
{
|
|
6129
6145
|
gap: 1,
|
|
6130
6146
|
alignItems: "center",
|
|
@@ -6135,11 +6151,11 @@ var NoResults = ({ searchValue, onClear }) => /* @__PURE__ */ React93.createElem
|
|
|
6135
6151
|
sx: { pb: 3.5 }
|
|
6136
6152
|
},
|
|
6137
6153
|
/* @__PURE__ */ React93.createElement(import_icons28.DatabaseIcon, { fontSize: "large" }),
|
|
6138
|
-
/* @__PURE__ */ React93.createElement(
|
|
6139
|
-
/* @__PURE__ */ React93.createElement(
|
|
6154
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n65.__)("Sorry, nothing matched", "elementor"), /* @__PURE__ */ React93.createElement("br", null), "\u201C", searchValue, "\u201D."),
|
|
6155
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "caption", sx: { display: "flex", flexDirection: "column" } }, (0, import_i18n65.__)("Try something else.", "elementor"), /* @__PURE__ */ React93.createElement(import_ui44.Link, { color: "text.secondary", variant: "caption", component: "button", onClick: onClear }, (0, import_i18n65.__)("Clear & try again", "elementor")))
|
|
6140
6156
|
);
|
|
6141
|
-
var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(
|
|
6142
|
-
|
|
6157
|
+
var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(import_ui44.Divider, null), /* @__PURE__ */ React93.createElement(
|
|
6158
|
+
import_ui44.Stack,
|
|
6143
6159
|
{
|
|
6144
6160
|
gap: 1,
|
|
6145
6161
|
alignItems: "center",
|
|
@@ -6150,8 +6166,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6150
6166
|
sx: { pb: 3.5 }
|
|
6151
6167
|
},
|
|
6152
6168
|
/* @__PURE__ */ React93.createElement(import_icons28.DatabaseIcon, { fontSize: "large" }),
|
|
6153
|
-
/* @__PURE__ */ React93.createElement(
|
|
6154
|
-
/* @__PURE__ */ React93.createElement(
|
|
6169
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n65.__)("Streamline your workflow with dynamic tags", "elementor")),
|
|
6170
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n65.__)("Upgrade now to display your content dynamically.", "elementor")),
|
|
6155
6171
|
/* @__PURE__ */ React93.createElement(
|
|
6156
6172
|
import_editor_ui9.CtaButton,
|
|
6157
6173
|
{
|
|
@@ -6161,8 +6177,8 @@ var NoDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment
|
|
|
6161
6177
|
}
|
|
6162
6178
|
)
|
|
6163
6179
|
));
|
|
6164
|
-
var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(
|
|
6165
|
-
|
|
6180
|
+
var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fragment, null, /* @__PURE__ */ React93.createElement(import_ui44.Divider, null), /* @__PURE__ */ React93.createElement(
|
|
6181
|
+
import_ui44.Stack,
|
|
6166
6182
|
{
|
|
6167
6183
|
gap: 1,
|
|
6168
6184
|
alignItems: "center",
|
|
@@ -6173,8 +6189,8 @@ var ExpiredDynamicTags = () => /* @__PURE__ */ React93.createElement(React93.Fra
|
|
|
6173
6189
|
sx: { pb: 3.5 }
|
|
6174
6190
|
},
|
|
6175
6191
|
/* @__PURE__ */ React93.createElement(import_icons28.DatabaseIcon, { fontSize: "large" }),
|
|
6176
|
-
/* @__PURE__ */ React93.createElement(
|
|
6177
|
-
/* @__PURE__ */ React93.createElement(
|
|
6192
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "subtitle2" }, (0, import_i18n65.__)("Unlock your Dynamic tags again", "elementor")),
|
|
6193
|
+
/* @__PURE__ */ React93.createElement(import_ui44.Typography, { align: "center", variant: "caption", width: PROMO_TEXT_WIDTH }, (0, import_i18n65.__)("Dynamic tags need Elementor Pro. Renew now to keep them active.", "elementor")),
|
|
6178
6194
|
/* @__PURE__ */ React93.createElement(
|
|
6179
6195
|
import_editor_ui9.CtaButton,
|
|
6180
6196
|
{
|
|
@@ -6214,7 +6230,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6214
6230
|
}
|
|
6215
6231
|
});
|
|
6216
6232
|
const [propValueFromHistory] = usePersistDynamicValue(bind);
|
|
6217
|
-
const selectionPopoverState = (0,
|
|
6233
|
+
const selectionPopoverState = (0, import_ui45.usePopupState)({ variant: "popover" });
|
|
6218
6234
|
const { name: tagName = "" } = value;
|
|
6219
6235
|
const dynamicTag = useDynamicTag(tagName);
|
|
6220
6236
|
if (!isDynamicTagSupported(tagName) && OriginalControl) {
|
|
@@ -6226,16 +6242,16 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6226
6242
|
if (!dynamicTag) {
|
|
6227
6243
|
throw new Error(`Dynamic tag ${tagName} not found`);
|
|
6228
6244
|
}
|
|
6229
|
-
return /* @__PURE__ */ React94.createElement(
|
|
6230
|
-
|
|
6245
|
+
return /* @__PURE__ */ React94.createElement(import_ui45.Box, null, /* @__PURE__ */ React94.createElement(
|
|
6246
|
+
import_ui45.UnstableTag,
|
|
6231
6247
|
{
|
|
6232
6248
|
fullWidth: true,
|
|
6233
6249
|
showActionsOnHover: true,
|
|
6234
6250
|
label: dynamicTag.label,
|
|
6235
6251
|
startIcon: /* @__PURE__ */ React94.createElement(import_icons29.DatabaseIcon, { fontSize: SIZE3 }),
|
|
6236
|
-
...(0,
|
|
6252
|
+
...(0, import_ui45.bindTrigger)(selectionPopoverState),
|
|
6237
6253
|
actions: /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(DynamicSettingsPopover, { dynamicTag, disabled: readonly }), /* @__PURE__ */ React94.createElement(
|
|
6238
|
-
|
|
6254
|
+
import_ui45.IconButton,
|
|
6239
6255
|
{
|
|
6240
6256
|
size: SIZE3,
|
|
6241
6257
|
onClick: removeDynamicTag,
|
|
@@ -6245,7 +6261,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6245
6261
|
))
|
|
6246
6262
|
}
|
|
6247
6263
|
), /* @__PURE__ */ React94.createElement(
|
|
6248
|
-
|
|
6264
|
+
import_ui45.Popover,
|
|
6249
6265
|
{
|
|
6250
6266
|
disablePortal: true,
|
|
6251
6267
|
disableScrollLock: true,
|
|
@@ -6254,7 +6270,7 @@ var DynamicSelectionControl = ({ OriginalControl, ...props }) => {
|
|
|
6254
6270
|
PaperProps: {
|
|
6255
6271
|
sx: { my: 1 }
|
|
6256
6272
|
},
|
|
6257
|
-
...(0,
|
|
6273
|
+
...(0, import_ui45.bindPopover)(selectionPopoverState)
|
|
6258
6274
|
},
|
|
6259
6275
|
/* @__PURE__ */ React94.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n66.__)("Dynamic tags", "elementor") }, /* @__PURE__ */ React94.createElement(DynamicSelection, { close: selectionPopoverState.close, expired: readonly }))
|
|
6260
6276
|
));
|
|
@@ -6263,22 +6279,22 @@ var DynamicSettingsPopover = ({
|
|
|
6263
6279
|
dynamicTag,
|
|
6264
6280
|
disabled = false
|
|
6265
6281
|
}) => {
|
|
6266
|
-
const popupState = (0,
|
|
6282
|
+
const popupState = (0, import_ui45.usePopupState)({ variant: "popover" });
|
|
6267
6283
|
const hasDynamicSettings = !!dynamicTag.atomic_controls.length;
|
|
6268
6284
|
if (!hasDynamicSettings) {
|
|
6269
6285
|
return null;
|
|
6270
6286
|
}
|
|
6271
6287
|
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
6272
|
-
|
|
6288
|
+
import_ui45.IconButton,
|
|
6273
6289
|
{
|
|
6274
6290
|
size: SIZE3,
|
|
6275
6291
|
disabled,
|
|
6276
|
-
...!disabled && (0,
|
|
6292
|
+
...!disabled && (0, import_ui45.bindTrigger)(popupState),
|
|
6277
6293
|
"aria-label": (0, import_i18n66.__)("Dynamic settings", "elementor")
|
|
6278
6294
|
},
|
|
6279
6295
|
/* @__PURE__ */ React94.createElement(import_icons29.SettingsIcon, { fontSize: SIZE3 })
|
|
6280
6296
|
), /* @__PURE__ */ React94.createElement(
|
|
6281
|
-
|
|
6297
|
+
import_ui45.Popover,
|
|
6282
6298
|
{
|
|
6283
6299
|
disablePortal: true,
|
|
6284
6300
|
disableScrollLock: true,
|
|
@@ -6287,7 +6303,7 @@ var DynamicSettingsPopover = ({
|
|
|
6287
6303
|
PaperProps: {
|
|
6288
6304
|
sx: { my: 1 }
|
|
6289
6305
|
},
|
|
6290
|
-
...(0,
|
|
6306
|
+
...(0, import_ui45.bindPopover)(popupState)
|
|
6291
6307
|
},
|
|
6292
6308
|
/* @__PURE__ */ React94.createElement(import_editor_ui10.SectionPopoverBody, { "aria-label": (0, import_i18n66.__)("Dynamic settings", "elementor") }, /* @__PURE__ */ React94.createElement(
|
|
6293
6309
|
import_editor_ui10.PopoverHeader,
|
|
@@ -6301,25 +6317,25 @@ var DynamicSettingsPopover = ({
|
|
|
6301
6317
|
};
|
|
6302
6318
|
var DynamicSettings = ({ controls, tagName }) => {
|
|
6303
6319
|
const tabs = controls.filter(({ type }) => type === "section");
|
|
6304
|
-
const { getTabsProps, getTabProps, getTabPanelProps } = (0,
|
|
6320
|
+
const { getTabsProps, getTabProps, getTabPanelProps } = (0, import_ui45.useTabs)(0);
|
|
6305
6321
|
if (!tabs.length) {
|
|
6306
6322
|
return null;
|
|
6307
6323
|
}
|
|
6308
6324
|
if (tagsWithoutTabs.includes(tagName)) {
|
|
6309
6325
|
const singleTab = tabs[0];
|
|
6310
|
-
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(
|
|
6326
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, /* @__PURE__ */ React94.createElement(import_ui45.Divider, null), /* @__PURE__ */ React94.createElement(ControlsItemsStack, { items: singleTab.value.items }));
|
|
6311
6327
|
}
|
|
6312
|
-
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React94.createElement(
|
|
6313
|
-
|
|
6328
|
+
return /* @__PURE__ */ React94.createElement(React94.Fragment, null, tabs.length > 1 && /* @__PURE__ */ React94.createElement(import_ui45.Tabs, { size: "small", variant: "fullWidth", ...getTabsProps() }, tabs.map(({ value }, index) => /* @__PURE__ */ React94.createElement(
|
|
6329
|
+
import_ui45.Tab,
|
|
6314
6330
|
{
|
|
6315
6331
|
key: index,
|
|
6316
6332
|
label: value.label,
|
|
6317
6333
|
sx: { px: 1, py: 0.5 },
|
|
6318
6334
|
...getTabProps(index)
|
|
6319
6335
|
}
|
|
6320
|
-
))), /* @__PURE__ */ React94.createElement(
|
|
6336
|
+
))), /* @__PURE__ */ React94.createElement(import_ui45.Divider, null), tabs.map(({ value }, index) => {
|
|
6321
6337
|
return /* @__PURE__ */ React94.createElement(
|
|
6322
|
-
|
|
6338
|
+
import_ui45.TabPanel,
|
|
6323
6339
|
{
|
|
6324
6340
|
key: index,
|
|
6325
6341
|
sx: { flexGrow: 1, py: 0, overflowY: "auto" },
|
|
@@ -6367,10 +6383,10 @@ var Control2 = ({ control }) => {
|
|
|
6367
6383
|
display: "grid",
|
|
6368
6384
|
gridTemplateColumns: isSwitchControl ? "minmax(0, 1fr) max-content" : "1fr 1fr"
|
|
6369
6385
|
} : {};
|
|
6370
|
-
return /* @__PURE__ */ React94.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React94.createElement(
|
|
6386
|
+
return /* @__PURE__ */ React94.createElement(DynamicControl, { bind: control.bind }, /* @__PURE__ */ React94.createElement(import_ui45.Grid, { container: true, gap: 0.75, sx: layoutStyleProps }, control.label ? /* @__PURE__ */ React94.createElement(import_ui45.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React94.createElement(import_editor_controls63.ControlFormLabel, null, control.label)) : null, /* @__PURE__ */ React94.createElement(import_ui45.Grid, { item: true, xs: 12 }, /* @__PURE__ */ React94.createElement(Control, { type: control.type, props: controlProps }))));
|
|
6371
6387
|
};
|
|
6372
6388
|
function ControlsItemsStack({ items: items3 }) {
|
|
6373
|
-
return /* @__PURE__ */ React94.createElement(
|
|
6389
|
+
return /* @__PURE__ */ React94.createElement(import_ui45.Stack, { p: 2, gap: 2, sx: { overflowY: "auto" } }, items3.map(
|
|
6374
6390
|
(item) => item.type === "control" ? /* @__PURE__ */ React94.createElement(Control2, { key: item.value.bind, control: item.value }) : null
|
|
6375
6391
|
));
|
|
6376
6392
|
}
|
|
@@ -6564,7 +6580,7 @@ var React100 = __toESM(require("react"));
|
|
|
6564
6580
|
var import_react47 = require("react");
|
|
6565
6581
|
var import_editor_canvas5 = require("@elementor/editor-canvas");
|
|
6566
6582
|
var import_editor_ui11 = require("@elementor/editor-ui");
|
|
6567
|
-
var
|
|
6583
|
+
var import_ui50 = require("@elementor/ui");
|
|
6568
6584
|
var import_i18n71 = require("@wordpress/i18n");
|
|
6569
6585
|
|
|
6570
6586
|
// src/styles-inheritance/hooks/use-normalized-inheritance-chain-items.tsx
|
|
@@ -6643,7 +6659,7 @@ var getTransformedValue = async (item, bind, resolve) => {
|
|
|
6643
6659
|
var React96 = __toESM(require("react"));
|
|
6644
6660
|
var import_editor_responsive4 = require("@elementor/editor-responsive");
|
|
6645
6661
|
var import_icons32 = require("@elementor/icons");
|
|
6646
|
-
var
|
|
6662
|
+
var import_ui46 = require("@elementor/ui");
|
|
6647
6663
|
var SIZE4 = "tiny";
|
|
6648
6664
|
var DEFAULT_BREAKPOINT3 = "desktop";
|
|
6649
6665
|
var breakpointIconMap = {
|
|
@@ -6663,21 +6679,21 @@ var BreakpointIcon = ({ breakpoint }) => {
|
|
|
6663
6679
|
return null;
|
|
6664
6680
|
}
|
|
6665
6681
|
const breakpointLabel = breakpoints.find((breakpointItem) => breakpointItem.id === currentBreakpoint)?.label;
|
|
6666
|
-
return /* @__PURE__ */ React96.createElement(
|
|
6682
|
+
return /* @__PURE__ */ React96.createElement(import_ui46.Tooltip, { title: breakpointLabel, placement: "top" }, /* @__PURE__ */ React96.createElement(IconComponent, { fontSize: SIZE4, sx: { mt: "2px" } }));
|
|
6667
6683
|
};
|
|
6668
6684
|
|
|
6669
6685
|
// src/styles-inheritance/components/infotip/label-chip.tsx
|
|
6670
6686
|
var React97 = __toESM(require("react"));
|
|
6671
6687
|
var import_editor_styles_repository16 = require("@elementor/editor-styles-repository");
|
|
6672
6688
|
var import_icons33 = require("@elementor/icons");
|
|
6673
|
-
var
|
|
6689
|
+
var import_ui47 = require("@elementor/ui");
|
|
6674
6690
|
var import_i18n70 = require("@wordpress/i18n");
|
|
6675
6691
|
var SIZE5 = "tiny";
|
|
6676
6692
|
var LabelChip = ({ displayLabel, provider }) => {
|
|
6677
6693
|
const isBaseStyle = provider === import_editor_styles_repository16.ELEMENTS_BASE_STYLES_PROVIDER_KEY;
|
|
6678
|
-
const chipIcon = isBaseStyle ? /* @__PURE__ */ React97.createElement(
|
|
6694
|
+
const chipIcon = isBaseStyle ? /* @__PURE__ */ React97.createElement(import_ui47.Tooltip, { title: (0, import_i18n70.__)("Inherited from base styles", "elementor"), placement: "top" }, /* @__PURE__ */ React97.createElement(import_icons33.InfoCircleIcon, { fontSize: SIZE5 })) : void 0;
|
|
6679
6695
|
return /* @__PURE__ */ React97.createElement(
|
|
6680
|
-
|
|
6696
|
+
import_ui47.Chip,
|
|
6681
6697
|
{
|
|
6682
6698
|
label: displayLabel,
|
|
6683
6699
|
size: SIZE5,
|
|
@@ -6703,10 +6719,10 @@ var LabelChip = ({ displayLabel, provider }) => {
|
|
|
6703
6719
|
|
|
6704
6720
|
// src/styles-inheritance/components/infotip/value-component.tsx
|
|
6705
6721
|
var React98 = __toESM(require("react"));
|
|
6706
|
-
var
|
|
6722
|
+
var import_ui48 = require("@elementor/ui");
|
|
6707
6723
|
var ValueComponent = ({ index, value }) => {
|
|
6708
|
-
return /* @__PURE__ */ React98.createElement(
|
|
6709
|
-
|
|
6724
|
+
return /* @__PURE__ */ React98.createElement(import_ui48.Tooltip, { title: value, placement: "top" }, /* @__PURE__ */ React98.createElement(
|
|
6725
|
+
import_ui48.Typography,
|
|
6710
6726
|
{
|
|
6711
6727
|
variant: "caption",
|
|
6712
6728
|
color: "text.tertiary",
|
|
@@ -6728,8 +6744,8 @@ var ValueComponent = ({ index, value }) => {
|
|
|
6728
6744
|
|
|
6729
6745
|
// src/styles-inheritance/components/infotip/action-icons.tsx
|
|
6730
6746
|
var React99 = __toESM(require("react"));
|
|
6731
|
-
var
|
|
6732
|
-
var ActionIcons = () => /* @__PURE__ */ React99.createElement(
|
|
6747
|
+
var import_ui49 = require("@elementor/ui");
|
|
6748
|
+
var ActionIcons = () => /* @__PURE__ */ React99.createElement(import_ui49.Box, { display: "flex", gap: 0.5, alignItems: "center" });
|
|
6733
6749
|
|
|
6734
6750
|
// src/styles-inheritance/components/styles-inheritance-infotip.tsx
|
|
6735
6751
|
var SECTION_PADDING_INLINE = 32;
|
|
@@ -6765,8 +6781,8 @@ var StylesInheritanceInfotip = ({
|
|
|
6765
6781
|
});
|
|
6766
6782
|
}, [key, propType]);
|
|
6767
6783
|
const items3 = useNormalizedInheritanceChainItems(inheritanceChain, key, resolve);
|
|
6768
|
-
const infotipContent = /* @__PURE__ */ React100.createElement(
|
|
6769
|
-
|
|
6784
|
+
const infotipContent = /* @__PURE__ */ React100.createElement(import_ui50.ClickAwayListener, { onClickAway: closeInfotip }, /* @__PURE__ */ React100.createElement(
|
|
6785
|
+
import_ui50.Card,
|
|
6770
6786
|
{
|
|
6771
6787
|
elevation: 0,
|
|
6772
6788
|
sx: {
|
|
@@ -6779,7 +6795,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6779
6795
|
}
|
|
6780
6796
|
},
|
|
6781
6797
|
/* @__PURE__ */ React100.createElement(
|
|
6782
|
-
|
|
6798
|
+
import_ui50.Box,
|
|
6783
6799
|
{
|
|
6784
6800
|
sx: {
|
|
6785
6801
|
position: "sticky",
|
|
@@ -6791,7 +6807,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6791
6807
|
/* @__PURE__ */ React100.createElement(import_editor_ui11.PopoverHeader, { title: (0, import_i18n71.__)("Style origin", "elementor"), onClose: closeInfotip })
|
|
6792
6808
|
),
|
|
6793
6809
|
/* @__PURE__ */ React100.createElement(
|
|
6794
|
-
|
|
6810
|
+
import_ui50.CardContent,
|
|
6795
6811
|
{
|
|
6796
6812
|
sx: {
|
|
6797
6813
|
display: "flex",
|
|
@@ -6804,9 +6820,9 @@ var StylesInheritanceInfotip = ({
|
|
|
6804
6820
|
}
|
|
6805
6821
|
}
|
|
6806
6822
|
},
|
|
6807
|
-
/* @__PURE__ */ React100.createElement(
|
|
6823
|
+
/* @__PURE__ */ React100.createElement(import_ui50.Stack, { gap: 1.5, sx: { pl: 2, pr: 1, pt: 1.5, pb: 1.5 }, role: "list" }, items3.map((item, index) => {
|
|
6808
6824
|
return /* @__PURE__ */ React100.createElement(
|
|
6809
|
-
|
|
6825
|
+
import_ui50.Box,
|
|
6810
6826
|
{
|
|
6811
6827
|
key: item.id,
|
|
6812
6828
|
display: "flex",
|
|
@@ -6818,7 +6834,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6818
6834
|
)
|
|
6819
6835
|
},
|
|
6820
6836
|
/* @__PURE__ */ React100.createElement(
|
|
6821
|
-
|
|
6837
|
+
import_ui50.Box,
|
|
6822
6838
|
{
|
|
6823
6839
|
display: "flex",
|
|
6824
6840
|
gap: 0.5,
|
|
@@ -6834,9 +6850,9 @@ var StylesInheritanceInfotip = ({
|
|
|
6834
6850
|
)
|
|
6835
6851
|
));
|
|
6836
6852
|
if (isDisabled) {
|
|
6837
|
-
return /* @__PURE__ */ React100.createElement(
|
|
6853
|
+
return /* @__PURE__ */ React100.createElement(import_ui50.Box, { sx: { display: "inline-flex" } }, children);
|
|
6838
6854
|
}
|
|
6839
|
-
return /* @__PURE__ */ React100.createElement(
|
|
6855
|
+
return /* @__PURE__ */ React100.createElement(import_ui50.Box, { ref: triggerRef, sx: { display: "inline-flex" } }, /* @__PURE__ */ React100.createElement(
|
|
6840
6856
|
TooltipOrInfotip,
|
|
6841
6857
|
{
|
|
6842
6858
|
showInfotip,
|
|
@@ -6845,7 +6861,7 @@ var StylesInheritanceInfotip = ({
|
|
|
6845
6861
|
isDisabled
|
|
6846
6862
|
},
|
|
6847
6863
|
/* @__PURE__ */ React100.createElement(
|
|
6848
|
-
|
|
6864
|
+
import_ui50.IconButton,
|
|
6849
6865
|
{
|
|
6850
6866
|
onClick: toggleInfotip,
|
|
6851
6867
|
"aria-label": label,
|
|
@@ -6864,11 +6880,11 @@ function TooltipOrInfotip({
|
|
|
6864
6880
|
isDisabled
|
|
6865
6881
|
}) {
|
|
6866
6882
|
if (isDisabled) {
|
|
6867
|
-
return /* @__PURE__ */ React100.createElement(
|
|
6883
|
+
return /* @__PURE__ */ React100.createElement(import_ui50.Box, { sx: { display: "inline-flex" } }, children);
|
|
6868
6884
|
}
|
|
6869
6885
|
if (showInfotip) {
|
|
6870
6886
|
return /* @__PURE__ */ React100.createElement(React100.Fragment, null, /* @__PURE__ */ React100.createElement(
|
|
6871
|
-
|
|
6887
|
+
import_ui50.Backdrop,
|
|
6872
6888
|
{
|
|
6873
6889
|
open: showInfotip,
|
|
6874
6890
|
onClick: onClose,
|
|
@@ -6878,7 +6894,7 @@ function TooltipOrInfotip({
|
|
|
6878
6894
|
}
|
|
6879
6895
|
}
|
|
6880
6896
|
), /* @__PURE__ */ React100.createElement(
|
|
6881
|
-
|
|
6897
|
+
import_ui50.Infotip,
|
|
6882
6898
|
{
|
|
6883
6899
|
placement: "top-end",
|
|
6884
6900
|
content: infotipContent,
|
|
@@ -6889,7 +6905,7 @@ function TooltipOrInfotip({
|
|
|
6889
6905
|
children
|
|
6890
6906
|
));
|
|
6891
6907
|
}
|
|
6892
|
-
return /* @__PURE__ */ React100.createElement(
|
|
6908
|
+
return /* @__PURE__ */ React100.createElement(import_ui50.Tooltip, { title: (0, import_i18n71.__)("Style origin", "elementor"), placement: "top" }, children);
|
|
6893
6909
|
}
|
|
6894
6910
|
|
|
6895
6911
|
// src/styles-inheritance/components/styles-inheritance-indicator.tsx
|
|
@@ -6974,12 +6990,12 @@ var arrayTransformer = (0, import_editor_canvas6.createTransformer)((values) =>
|
|
|
6974
6990
|
// src/styles-inheritance/transformers/background-color-overlay-transformer.tsx
|
|
6975
6991
|
var React103 = __toESM(require("react"));
|
|
6976
6992
|
var import_editor_canvas7 = require("@elementor/editor-canvas");
|
|
6977
|
-
var
|
|
6978
|
-
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React103.createElement(
|
|
6993
|
+
var import_ui51 = require("@elementor/ui");
|
|
6994
|
+
var backgroundColorOverlayTransformer = (0, import_editor_canvas7.createTransformer)((value) => /* @__PURE__ */ React103.createElement(import_ui51.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React103.createElement(ItemLabelColor, { value })));
|
|
6979
6995
|
var ItemLabelColor = ({ value: { color } }) => {
|
|
6980
6996
|
return /* @__PURE__ */ React103.createElement("span", null, color);
|
|
6981
6997
|
};
|
|
6982
|
-
var StyledUnstableColorIndicator = (0,
|
|
6998
|
+
var StyledUnstableColorIndicator = (0, import_ui51.styled)(import_ui51.UnstableColorIndicator)(({ theme }) => ({
|
|
6983
6999
|
width: "1em",
|
|
6984
7000
|
height: "1em",
|
|
6985
7001
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -6990,9 +7006,9 @@ var StyledUnstableColorIndicator = (0, import_ui50.styled)(import_ui50.UnstableC
|
|
|
6990
7006
|
// src/styles-inheritance/transformers/background-gradient-overlay-transformer.tsx
|
|
6991
7007
|
var React104 = __toESM(require("react"));
|
|
6992
7008
|
var import_editor_canvas8 = require("@elementor/editor-canvas");
|
|
6993
|
-
var
|
|
7009
|
+
var import_ui52 = require("@elementor/ui");
|
|
6994
7010
|
var import_i18n73 = require("@wordpress/i18n");
|
|
6995
|
-
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React104.createElement(
|
|
7011
|
+
var backgroundGradientOverlayTransformer = (0, import_editor_canvas8.createTransformer)((value) => /* @__PURE__ */ React104.createElement(import_ui52.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React104.createElement(ItemIconGradient, { value }), /* @__PURE__ */ React104.createElement(ItemLabelGradient, { value })));
|
|
6996
7012
|
var ItemIconGradient = ({ value }) => {
|
|
6997
7013
|
const gradient = getGradientValue(value);
|
|
6998
7014
|
return /* @__PURE__ */ React104.createElement(StyledUnstableColorIndicator, { size: "inherit", component: "span", value: gradient });
|
|
@@ -7015,13 +7031,13 @@ var getGradientValue = (gradient) => {
|
|
|
7015
7031
|
var React105 = __toESM(require("react"));
|
|
7016
7032
|
var import_editor_canvas9 = require("@elementor/editor-canvas");
|
|
7017
7033
|
var import_editor_ui12 = require("@elementor/editor-ui");
|
|
7018
|
-
var
|
|
7034
|
+
var import_ui53 = require("@elementor/ui");
|
|
7019
7035
|
var import_wp_media = require("@elementor/wp-media");
|
|
7020
|
-
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React105.createElement(
|
|
7036
|
+
var backgroundImageOverlayTransformer = (0, import_editor_canvas9.createTransformer)((value) => /* @__PURE__ */ React105.createElement(import_ui53.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React105.createElement(ItemIconImage, { value }), /* @__PURE__ */ React105.createElement(ItemLabelImage, { value })));
|
|
7021
7037
|
var ItemIconImage = ({ value }) => {
|
|
7022
7038
|
const { imageUrl } = useImage(value);
|
|
7023
7039
|
return /* @__PURE__ */ React105.createElement(
|
|
7024
|
-
|
|
7040
|
+
import_ui53.CardMedia,
|
|
7025
7041
|
{
|
|
7026
7042
|
image: imageUrl,
|
|
7027
7043
|
sx: (theme) => ({
|
|
@@ -7077,14 +7093,14 @@ var boxShadowTransformer = (0, import_editor_canvas10.createTransformer)((value)
|
|
|
7077
7093
|
// src/styles-inheritance/transformers/color-transformer.tsx
|
|
7078
7094
|
var React107 = __toESM(require("react"));
|
|
7079
7095
|
var import_editor_canvas11 = require("@elementor/editor-canvas");
|
|
7080
|
-
var
|
|
7096
|
+
var import_ui54 = require("@elementor/ui");
|
|
7081
7097
|
function isValidCSSColor(value) {
|
|
7082
7098
|
if (!value.trim()) {
|
|
7083
7099
|
return false;
|
|
7084
7100
|
}
|
|
7085
7101
|
return CSS.supports("color", value.trim());
|
|
7086
7102
|
}
|
|
7087
|
-
var StyledColorIndicator = (0,
|
|
7103
|
+
var StyledColorIndicator = (0, import_ui54.styled)(import_ui54.UnstableColorIndicator)(({ theme }) => ({
|
|
7088
7104
|
width: "1em",
|
|
7089
7105
|
height: "1em",
|
|
7090
7106
|
borderRadius: `${theme.shape.borderRadius / 2}px`,
|
|
@@ -7095,7 +7111,7 @@ var colorTransformer = (0, import_editor_canvas11.createTransformer)((value) =>
|
|
|
7095
7111
|
if (!isValidCSSColor(value)) {
|
|
7096
7112
|
return value;
|
|
7097
7113
|
}
|
|
7098
|
-
return /* @__PURE__ */ React107.createElement(
|
|
7114
|
+
return /* @__PURE__ */ React107.createElement(import_ui54.Stack, { direction: "row", gap: 1, alignItems: "center" }, /* @__PURE__ */ React107.createElement(StyledColorIndicator, { size: "inherit", component: "span", value }), /* @__PURE__ */ React107.createElement("span", null, value));
|
|
7099
7115
|
});
|
|
7100
7116
|
|
|
7101
7117
|
// src/styles-inheritance/transformers/repeater-to-items-transformer.tsx
|