@social-mail/social-mail-client 1.2.768 → 1.2.770
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/site-editor/blocks/ColumnBox.d.ts.map +1 -1
- package/dist/site-editor/blocks/ColumnBox.js +1 -0
- package/dist/site-editor/blocks/ColumnBox.js.map +1 -1
- package/dist/site-editor/blocks/Columns2.js +1 -1
- package/dist/site-editor/blocks/Columns3.js +1 -1
- package/dist/site-editor/properties/groups/TextPropertyEditor.d.ts.map +1 -1
- package/dist/site-editor/properties/groups/TextPropertyEditor.js +3 -0
- package/dist/site-editor/properties/groups/TextPropertyEditor.js.map +1 -1
- package/dist/site-editor/styler/Styler.d.ts +1 -1
- package/dist/site-editor/styler/Styler.d.ts.map +1 -1
- package/dist/site-editor/styler/Styler.js +4 -1
- package/dist/site-editor/styler/Styler.js.map +1 -1
- package/dist/site-editor/styler/StylerSet.d.ts +1 -0
- package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/child-size/stylerChildSize.js +3 -3
- package/dist/site-editor/styler/properties/child-size/stylerChildSize.js.map +1 -1
- package/dist/site-editor/styler/properties/text/stylerText.d.ts +1 -0
- package/dist/site-editor/styler/properties/text/stylerText.d.ts.map +1 -1
- package/dist/site-editor/styler/properties/text/stylerText.js +6 -0
- package/dist/site-editor/styler/properties/text/stylerText.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +19 -6
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +6 -5
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/site-editor/blocks/ColumnBox.tsx +1 -0
- package/src/site-editor/blocks/Columns2.tsx +1 -1
- package/src/site-editor/blocks/Columns3.tsx +1 -1
- package/src/site-editor/properties/groups/TextPropertyEditor.tsx +4 -0
- package/src/site-editor/styler/Styler.ts +5 -3
- package/src/site-editor/styler/properties/child-size/stylerChildSize.ts +3 -3
- package/src/site-editor/styler/properties/text/stylerText.ts +7 -0
package/package.json
CHANGED
|
@@ -447,11 +447,14 @@ export const createSet = (name: string, values: IStyleValue[], appendGlobals = f
|
|
|
447
447
|
return r as any;
|
|
448
448
|
};
|
|
449
449
|
|
|
450
|
-
export const createVarSet = (name: string, values: { name: string, value: string}[], addCustom = true, addDefaults = false) => {
|
|
450
|
+
export const createVarSet = (name: string, values: { name: string, value: string}[], addCustom = true as string | boolean, addDefaults = false) => {
|
|
451
451
|
const r = {
|
|
452
452
|
} as any;
|
|
453
453
|
if (addCustom) {
|
|
454
|
-
|
|
454
|
+
if (typeof addCustom !== "string") {
|
|
455
|
+
addCustom = `--styler-${name}`;
|
|
456
|
+
}
|
|
457
|
+
r.custom = styled.css `${name}: var(${addCustom});`;
|
|
455
458
|
}
|
|
456
459
|
for (const iterator of values) {
|
|
457
460
|
r[iterator.name] = styled.css `\t${name}: var(--${iterator.name});`.withDescription(iterator.value);
|
|
@@ -464,7 +467,6 @@ export const createVarSet = (name: string, values: { name: string, value: string
|
|
|
464
467
|
return r as any;
|
|
465
468
|
};
|
|
466
469
|
|
|
467
|
-
|
|
468
470
|
export const createVarSetWith = (name: string, prefix: string, values: { name: string, value: string}[], addCustom = true) => {
|
|
469
471
|
const r = {
|
|
470
472
|
} as any;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createVarSet, sizeVarList, StylerProperty } from "../../Styler";
|
|
2
2
|
|
|
3
3
|
const createDesktopSize = (name: string) => new StylerProperty("styler-desktop-child-" + name,
|
|
4
|
-
createVarSet(name, sizeVarList)
|
|
4
|
+
createVarSet(name, sizeVarList, "--styler-desktop-child-" + name)
|
|
5
5
|
, "", " > *", "@media (min-width: 900px)");
|
|
6
6
|
|
|
7
7
|
const createTabletSize = (name: string) => new StylerProperty("styler-tablet-child-" + name,
|
|
8
|
-
createVarSet(name, sizeVarList)
|
|
8
|
+
createVarSet(name, sizeVarList, "--styler-tablet-child-" + name)
|
|
9
9
|
, "", " > *", "@media (min-width: 700px)");
|
|
10
10
|
|
|
11
11
|
const createChildSize = (name: string) => new StylerProperty("styler-all-child-" + name,
|
|
12
|
-
createVarSet(name, sizeVarList)
|
|
12
|
+
createVarSet(name, sizeVarList, "--styler-all-child-" + name)
|
|
13
13
|
, "", " > *");
|
|
14
14
|
|
|
15
15
|
export const stylerChildSize = {
|
|
@@ -78,6 +78,13 @@ export const stylerText = {
|
|
|
78
78
|
"pre-wrap"
|
|
79
79
|
])),
|
|
80
80
|
|
|
81
|
+
stylerTextShadow: new StylerProperty("styler-text-shadow", {
|
|
82
|
+
custom: styled.css `text-shadow: var(--styler-text-shadow);`,
|
|
83
|
+
thin: styled.css `text-shadow: 0 0 1px var(--text-border-color, darkgray);`,
|
|
84
|
+
medium: styled.css `text-shadow: 0 0 2px var(--text-border-color, darkgray);`,
|
|
85
|
+
thick: styled.css `text-shadow: 0 0 4px var(--text-border-color, darkgray);`,
|
|
86
|
+
} ),
|
|
87
|
+
|
|
81
88
|
stylerTextOutline: new StylerProperty("styler-text-outline", {
|
|
82
89
|
"thin": styled.css `
|
|
83
90
|
-webkit-text-fill-color: transparent;
|