easy-email-extensions 4.12.0 → 4.12.1
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/index2.js +8 -1
- package/lib/index2.js.map +1 -1
- package/package.json +2 -2
package/lib/index2.js
CHANGED
@@ -33061,6 +33061,13 @@ function ColorPickerContent(props) {
|
|
33061
33061
|
const presetColorList = useMemo(() => {
|
33062
33062
|
return [...presetColors.filter((item2) => item2 !== transparentColor$1).slice(-14)];
|
33063
33063
|
}, [presetColors]);
|
33064
|
+
let adapterColor = color2;
|
33065
|
+
try {
|
33066
|
+
if (Color$2(color2).hex()) {
|
33067
|
+
adapterColor = Color$2(color2).hex();
|
33068
|
+
}
|
33069
|
+
} catch (error2) {
|
33070
|
+
}
|
33064
33071
|
return /* @__PURE__ */ React__default.createElement("div", {
|
33065
33072
|
className: styles$7.colorPicker,
|
33066
33073
|
style: { width: 202, paddingTop: 12, paddingBottom: 12 }
|
@@ -33113,7 +33120,7 @@ function ColorPickerContent(props) {
|
|
33113
33120
|
opacity: 0
|
33114
33121
|
},
|
33115
33122
|
type: "color",
|
33116
|
-
value:
|
33123
|
+
value: adapterColor,
|
33117
33124
|
onChange: (e) => onChange(e.target.value)
|
33118
33125
|
}))), /* @__PURE__ */ React__default.createElement("style", null, `
|
33119
33126
|
.form-alpha-picker {
|