easy-email-pro-theme 1.57.11 → 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/style.css CHANGED
@@ -370,15 +370,72 @@
370
370
  border-left: 0 !important;
371
371
  }
372
372
 
373
- .arco-radio-group-type-button .arco-radio-button::after {
374
- content: " ";
375
- display: block;
376
- position: absolute;
377
- top: -4px;
378
- left: -4px;
379
- right: -4px;
380
- bottom: -4px;
381
- background-color: var(--color-fill-2);
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;
@@ -1,7 +1,5 @@
1
1
  import React from "react";
2
- import { Path } from "slate";
3
- export declare const ColorPicker: ({ path, name, label, }: {
4
- path: Path;
5
- name: string;
6
- label: string;
2
+ import { ToolbarColorPickerProps } from "./NewColorPicker";
3
+ export declare const ColorPicker: ({ useNewColorPicker, ...props }: ToolbarColorPickerProps & {
4
+ useNewColorPicker?: boolean | undefined;
7
5
  }) => React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { ToolbarColorPickerProps } from "./NewColorPicker";
3
+ export declare const LegacyColorPicker: (props: ToolbarColorPickerProps) => React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from "react";
2
+ import { Path } from "slate";
3
+ export interface ToolbarColorPickerProps {
4
+ path: Path;
5
+ name: string;
6
+ label: string;
7
+ }
8
+ export declare const NewColorPickerInner: ({ path, name, label, }: ToolbarColorPickerProps) => React.JSX.Element;
9
+ export declare const NewColorPicker: (props: ToolbarColorPickerProps) => React.JSX.Element;
@@ -14,9 +14,7 @@ export declare const ConfigurationToolbarAttributeField: {
14
14
  path: import("slate").Path;
15
15
  name: string;
16
16
  }) => import("react").JSX.Element;
17
- ColorPicker: ({ path, name, label, }: {
18
- path: import("slate").Path;
19
- name: string;
20
- label: string;
17
+ ColorPicker: ({ useNewColorPicker, ...props }: import("./NewColorPicker").ToolbarColorPickerProps & {
18
+ useNewColorPicker?: boolean | undefined;
21
19
  }) => import("react").JSX.Element;
22
20
  };
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ export declare const ArcoColorPickerConfigProvider: ({ children, }: {
3
+ children: React.ReactNode;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,12 @@
1
+ import { PopoverProps } from "@arco-design/web-react";
2
+ import React from "react";
3
+ export interface LegacyColorPickerProps extends PopoverProps {
4
+ onChange?: (val: string) => void;
5
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
6
+ value?: string;
7
+ label?: React.ReactNode;
8
+ children?: React.ReactNode;
9
+ showInput?: boolean;
10
+ placeholder?: string;
11
+ }
12
+ export declare const LegacyColorPicker: (props: LegacyColorPickerProps) => React.JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { ColorPickerProps as ArcoColorPickerProps } from "@arco-design/web-react";
2
+ import React from "react";
3
+ export interface NewColorPickerProps extends Omit<ArcoColorPickerProps, "onChange" | "value" | "defaultValue" | "triggerElement"> {
4
+ onChange?: (val: string) => void;
5
+ value?: string;
6
+ label?: React.ReactNode;
7
+ children?: React.ReactNode;
8
+ onBlur?: React.FocusEventHandler<HTMLInputElement>;
9
+ showInput?: boolean;
10
+ placeholder?: string;
11
+ getPopupContainer?: (node: HTMLElement) => HTMLElement;
12
+ }
13
+ export declare const NewColorPicker: (props: NewColorPickerProps) => React.JSX.Element;
@@ -1,13 +1,9 @@
1
- import { PopoverProps } from "@arco-design/web-react";
2
1
  import React, { ComponentProps } from "react";
3
- export interface ColorPickerProps extends PopoverProps {
4
- onChange?: (val: string) => void;
5
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
6
- value?: string;
7
- label?: React.ReactNode;
8
- children?: React.ReactNode;
9
- showInput?: boolean;
10
- placeholder?: string;
2
+ import { PopoverProps } from "@arco-design/web-react";
3
+ import { LegacyColorPickerProps } from "./LegacyColorPicker";
4
+ import { NewColorPickerProps } from "./NewColorPicker";
5
+ export interface ColorPickerProps extends Omit<PopoverProps, "onChange" | "value" | "getPopupContainer">, NewColorPickerProps, Pick<LegacyColorPickerProps, "children" | "onBlur" | "showInput" | "placeholder"> {
6
+ useNewColorPicker?: boolean;
11
7
  }
12
8
  declare const ColorPicker: (props: ColorPickerProps) => React.JSX.Element;
13
9
  declare const DefaultColorPicker: (props: import("../enhancer").EnhancerProps & Omit<ColorPickerProps, "onChange" | "value">) => React.JSX.Element;
@@ -165,6 +165,7 @@ export interface PluginsCustomEditorTypes {
165
165
  showTextDirectionMode?: boolean;
166
166
  showDragMoveIcon?: boolean;
167
167
  showInsertTips?: boolean;
168
+ useNewColorPicker?: boolean;
168
169
  enabledHtmlBlockNodeAlign?: boolean;
169
170
  enabledPreviewEmailSubjectEdit?: boolean;
170
171
  enabledGradientImage?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy-email-pro-theme",
3
- "version": "1.57.11",
3
+ "version": "1.57.13",
4
4
  "description": "",
5
5
  "files": [
6
6
  "lib"