easy-email-pro-theme 1.57.12 → 1.57.13
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/lib/index.js +63 -30
- package/lib/style.css +66 -9
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -8393,6 +8393,29 @@ const Controller = () => {
|
|
|
8393
8393
|
))), /* @__PURE__ */ React__default.createElement("span", { className: "controller-item", "data-enable": zoom > 50 }, /* @__PURE__ */ React__default.createElement(Tooltip, { position: "top", content: t("Zoom out") }, /* @__PURE__ */ React__default.createElement(IconMinus, { onClick: onReduce })))))
|
|
8394
8394
|
));
|
|
8395
8395
|
};
|
|
8396
|
+
const VIEWPORT_SWITCH_HALF_WIDTH = 140;
|
|
8397
|
+
const viewportGroupStyle = {
|
|
8398
|
+
display: "inline-flex",
|
|
8399
|
+
gap: 2,
|
|
8400
|
+
padding: 2,
|
|
8401
|
+
border: "1px solid var(--color-border-2)",
|
|
8402
|
+
borderRadius: 8,
|
|
8403
|
+
background: "var(--color-bg-2)",
|
|
8404
|
+
boxShadow: "none"
|
|
8405
|
+
};
|
|
8406
|
+
const getViewportButtonStyle = (active) => ({
|
|
8407
|
+
minWidth: 132,
|
|
8408
|
+
height: 32,
|
|
8409
|
+
padding: "0 18px",
|
|
8410
|
+
border: 0,
|
|
8411
|
+
borderRadius: 6,
|
|
8412
|
+
background: active ? "var(--color-primary-light-1)" : "transparent",
|
|
8413
|
+
color: active ? "rgb(var(--primary-6))" : "var(--color-text-2)",
|
|
8414
|
+
fontSize: 13,
|
|
8415
|
+
fontWeight: active ? 600 : 500,
|
|
8416
|
+
lineHeight: "32px",
|
|
8417
|
+
boxShadow: "none"
|
|
8418
|
+
});
|
|
8396
8419
|
const TabHeader = (props) => {
|
|
8397
8420
|
const activeTab = useActiveTab();
|
|
8398
8421
|
const { setActiveTab } = useEditorActions();
|
|
@@ -8403,7 +8426,8 @@ const TabHeader = (props) => {
|
|
|
8403
8426
|
[setActiveTab]
|
|
8404
8427
|
);
|
|
8405
8428
|
const isMobileActive = activeTab === ActiveTabKeys.MOBILE;
|
|
8406
|
-
const
|
|
8429
|
+
const desktopViewportButtonClassName = `easy-email-pro-editor-tabs-viewport-button${!isMobileActive ? " easy-email-pro-editor-tabs-viewport-button-active" : ""}`;
|
|
8430
|
+
const mobileViewportButtonClassName = `easy-email-pro-editor-tabs-viewport-button${isMobileActive ? " easy-email-pro-editor-tabs-viewport-button-active" : ""}`;
|
|
8407
8431
|
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement(
|
|
8408
8432
|
"div",
|
|
8409
8433
|
{
|
|
@@ -8420,46 +8444,55 @@ const TabHeader = (props) => {
|
|
|
8420
8444
|
/* @__PURE__ */ React__default.createElement(
|
|
8421
8445
|
"div",
|
|
8422
8446
|
{
|
|
8423
|
-
style: {
|
|
8447
|
+
style: {
|
|
8448
|
+
position: "absolute",
|
|
8449
|
+
left: 0,
|
|
8450
|
+
width: `calc(50% - ${VIEWPORT_SWITCH_HALF_WIDTH}px)`
|
|
8451
|
+
}
|
|
8424
8452
|
},
|
|
8425
8453
|
props.left
|
|
8426
8454
|
),
|
|
8427
|
-
/* @__PURE__ */ React__default.createElement(
|
|
8428
|
-
|
|
8455
|
+
/* @__PURE__ */ React__default.createElement(
|
|
8456
|
+
"div",
|
|
8429
8457
|
{
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
paddingRight: grid,
|
|
8433
|
-
borderColor: !isMobileActive ? void 0 : "#000",
|
|
8434
|
-
color: !isMobileActive ? void 0 : "#000",
|
|
8435
|
-
borderRightColor: !isMobileActive ? void 0 : "transparent"
|
|
8436
|
-
},
|
|
8437
|
-
type: "outline",
|
|
8438
|
-
onClick: () => onChangeTab(ActiveTabKeys.DESKTOP)
|
|
8458
|
+
className: "easy-email-pro-editor-tabs-viewport-switch",
|
|
8459
|
+
style: { textAlign: "center" }
|
|
8439
8460
|
},
|
|
8440
|
-
/* @__PURE__ */ React__default.createElement(
|
|
8441
|
-
|
|
8442
|
-
|
|
8443
|
-
|
|
8444
|
-
|
|
8445
|
-
paddingLeft: grid,
|
|
8446
|
-
paddingRight: grid,
|
|
8447
|
-
borderColor: isMobileActive ? void 0 : "#000",
|
|
8448
|
-
color: isMobileActive ? void 0 : "#000",
|
|
8449
|
-
borderLeftColor: isMobileActive ? void 0 : "transparent"
|
|
8461
|
+
/* @__PURE__ */ React__default.createElement(
|
|
8462
|
+
Button$2.Group,
|
|
8463
|
+
{
|
|
8464
|
+
className: "easy-email-pro-editor-tabs-viewport-group",
|
|
8465
|
+
style: viewportGroupStyle
|
|
8450
8466
|
},
|
|
8451
|
-
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8455
|
-
|
|
8467
|
+
/* @__PURE__ */ React__default.createElement(
|
|
8468
|
+
Button$2,
|
|
8469
|
+
{
|
|
8470
|
+
className: desktopViewportButtonClassName,
|
|
8471
|
+
style: getViewportButtonStyle(!isMobileActive),
|
|
8472
|
+
type: "outline",
|
|
8473
|
+
onClick: () => onChangeTab(ActiveTabKeys.DESKTOP)
|
|
8474
|
+
},
|
|
8475
|
+
/* @__PURE__ */ React__default.createElement(Space, { size: 8 }, /* @__PURE__ */ React__default.createElement(IconFont, { iconName: "icon-desktop" }), " ", t("desktop"))
|
|
8476
|
+
),
|
|
8477
|
+
/* @__PURE__ */ React__default.createElement(
|
|
8478
|
+
Button$2,
|
|
8479
|
+
{
|
|
8480
|
+
className: mobileViewportButtonClassName,
|
|
8481
|
+
style: getViewportButtonStyle(isMobileActive),
|
|
8482
|
+
type: "outline",
|
|
8483
|
+
onClick: () => onChangeTab(ActiveTabKeys.MOBILE)
|
|
8484
|
+
},
|
|
8485
|
+
/* @__PURE__ */ React__default.createElement(Space, { size: 8 }, /* @__PURE__ */ React__default.createElement(IconFont, { iconName: "icon-mobile" }), " ", t("mobile"))
|
|
8486
|
+
)
|
|
8487
|
+
)
|
|
8488
|
+
),
|
|
8456
8489
|
/* @__PURE__ */ React__default.createElement(
|
|
8457
8490
|
"div",
|
|
8458
8491
|
{
|
|
8459
8492
|
style: {
|
|
8460
8493
|
position: "absolute",
|
|
8461
8494
|
right: 0,
|
|
8462
|
-
width: `calc(50% -
|
|
8495
|
+
width: `calc(50% - ${VIEWPORT_SWITCH_HALF_WIDTH}px)`,
|
|
8463
8496
|
textAlign: "right"
|
|
8464
8497
|
}
|
|
8465
8498
|
},
|
|
@@ -30858,7 +30891,7 @@ function TextAndHeadingStyle(props) {
|
|
|
30858
30891
|
Form.Item,
|
|
30859
30892
|
{
|
|
30860
30893
|
label: /* @__PURE__ */ React__default.createElement("div", null),
|
|
30861
|
-
style: { marginBottom:
|
|
30894
|
+
style: { marginBottom: 12 },
|
|
30862
30895
|
labelCol: {
|
|
30863
30896
|
span: 8,
|
|
30864
30897
|
offset: 0,
|
package/lib/style.css
CHANGED
|
@@ -370,15 +370,72 @@
|
|
|
370
370
|
border-left: 0 !important;
|
|
371
371
|
}
|
|
372
372
|
|
|
373
|
-
.arco-radio-group-type-button
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
373
|
+
.AttributesPanelWrapper .arco-radio-group-type-button {
|
|
374
|
+
display: flex;
|
|
375
|
+
gap: 2px;
|
|
376
|
+
width: 100%;
|
|
377
|
+
padding: 3px;
|
|
378
|
+
border: 0;
|
|
379
|
+
border-radius: 8px;
|
|
380
|
+
background: var(--color-fill-3);
|
|
381
|
+
box-sizing: border-box;
|
|
382
|
+
}
|
|
383
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button {
|
|
384
|
+
flex: 1 1 0;
|
|
385
|
+
min-width: 0;
|
|
386
|
+
height: 32px;
|
|
387
|
+
margin: 0;
|
|
388
|
+
padding: 0 10px;
|
|
389
|
+
border: 0 !important;
|
|
390
|
+
border-radius: 6px;
|
|
391
|
+
background: transparent !important;
|
|
392
|
+
color: var(--color-text-2);
|
|
393
|
+
font-size: 13px;
|
|
394
|
+
font-weight: 500;
|
|
395
|
+
line-height: 32px;
|
|
396
|
+
box-shadow: none !important;
|
|
397
|
+
box-sizing: border-box;
|
|
398
|
+
}
|
|
399
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button::before,
|
|
400
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button::after {
|
|
401
|
+
display: none !important;
|
|
402
|
+
}
|
|
403
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button-inner {
|
|
404
|
+
display: flex;
|
|
405
|
+
align-items: center;
|
|
406
|
+
justify-content: center;
|
|
407
|
+
width: 100%;
|
|
408
|
+
height: 100%;
|
|
409
|
+
padding: 0 !important;
|
|
410
|
+
overflow: hidden;
|
|
411
|
+
line-height: 1;
|
|
412
|
+
text-align: center;
|
|
413
|
+
text-overflow: ellipsis;
|
|
414
|
+
white-space: nowrap;
|
|
415
|
+
}
|
|
416
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button-inner > div,
|
|
417
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button-inner .arco-space {
|
|
418
|
+
display: flex;
|
|
419
|
+
align-items: center;
|
|
420
|
+
justify-content: center;
|
|
421
|
+
min-width: 0;
|
|
422
|
+
width: 100%;
|
|
423
|
+
height: 100%;
|
|
424
|
+
overflow: hidden;
|
|
425
|
+
text-align: center;
|
|
426
|
+
text-overflow: ellipsis;
|
|
427
|
+
white-space: nowrap;
|
|
428
|
+
}
|
|
429
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button:hover {
|
|
430
|
+
background: var(--color-fill-2) !important;
|
|
431
|
+
color: var(--color-text-1);
|
|
432
|
+
}
|
|
433
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-checked,
|
|
434
|
+
.AttributesPanelWrapper .arco-radio-group-type-button .arco-radio-button-checked {
|
|
435
|
+
background: var(--color-bg-2) !important;
|
|
436
|
+
color: rgb(var(--primary-6)) !important;
|
|
437
|
+
font-weight: 600;
|
|
438
|
+
box-shadow: 0 1px 4px rgba(29, 33, 41, 0.12) !important;
|
|
382
439
|
}.easy-email-pro-editor-controller {
|
|
383
440
|
font-size: 14px;
|
|
384
441
|
background: #fff;
|