@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.
Files changed (33) hide show
  1. package/dist/site-editor/blocks/ColumnBox.d.ts.map +1 -1
  2. package/dist/site-editor/blocks/ColumnBox.js +1 -0
  3. package/dist/site-editor/blocks/ColumnBox.js.map +1 -1
  4. package/dist/site-editor/blocks/Columns2.js +1 -1
  5. package/dist/site-editor/blocks/Columns3.js +1 -1
  6. package/dist/site-editor/properties/groups/TextPropertyEditor.d.ts.map +1 -1
  7. package/dist/site-editor/properties/groups/TextPropertyEditor.js +3 -0
  8. package/dist/site-editor/properties/groups/TextPropertyEditor.js.map +1 -1
  9. package/dist/site-editor/styler/Styler.d.ts +1 -1
  10. package/dist/site-editor/styler/Styler.d.ts.map +1 -1
  11. package/dist/site-editor/styler/Styler.js +4 -1
  12. package/dist/site-editor/styler/Styler.js.map +1 -1
  13. package/dist/site-editor/styler/StylerSet.d.ts +1 -0
  14. package/dist/site-editor/styler/StylerSet.d.ts.map +1 -1
  15. package/dist/site-editor/styler/properties/child-size/stylerChildSize.js +3 -3
  16. package/dist/site-editor/styler/properties/child-size/stylerChildSize.js.map +1 -1
  17. package/dist/site-editor/styler/properties/text/stylerText.d.ts +1 -0
  18. package/dist/site-editor/styler/properties/text/stylerText.d.ts.map +1 -1
  19. package/dist/site-editor/styler/properties/text/stylerText.js +6 -0
  20. package/dist/site-editor/styler/properties/text/stylerText.js.map +1 -1
  21. package/dist/site-editor-app/SiteEditorApp.pack.js +19 -6
  22. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  23. package/dist/site-editor-app/SiteEditorApp.pack.min.js +6 -5
  24. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  25. package/dist/tsconfig.tsbuildinfo +1 -1
  26. package/package.json +1 -1
  27. package/src/site-editor/blocks/ColumnBox.tsx +1 -0
  28. package/src/site-editor/blocks/Columns2.tsx +1 -1
  29. package/src/site-editor/blocks/Columns3.tsx +1 -1
  30. package/src/site-editor/properties/groups/TextPropertyEditor.tsx +4 -0
  31. package/src/site-editor/styler/Styler.ts +5 -3
  32. package/src/site-editor/styler/properties/child-size/stylerChildSize.ts +3 -3
  33. package/src/site-editor/styler/properties/text/stylerText.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.768",
3
+ "version": "1.2.770",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,6 +13,7 @@ StylerSets.register("low", styled.css `
13
13
  border-radius: ${stylerVars.sizeDefault};
14
14
  justify-items: center;
15
15
  align-items: stretch;
16
+ overflow: hidden;
16
17
 
17
18
  & > :not([styler-padding]) {
18
19
  padding: ${stylerVars.sizeDefault};
@@ -14,7 +14,7 @@ StylerSets.register("low", styled.css `
14
14
  flex-direction: row;
15
15
  align-items: center;
16
16
  justify-content: space-around;
17
- contain: content;
17
+ overflow: hidden;
18
18
 
19
19
  @media (max-width: 700px) {
20
20
  & {
@@ -16,7 +16,7 @@ StylerSets.register("low", styled.css `
16
16
  justify-content: space-evenly;
17
17
  justify-items: center;
18
18
  align-items: stretch;
19
- contain: content;
19
+ overflow: hidden;
20
20
 
21
21
  @media (max-width: 700px) {
22
22
  & {
@@ -63,6 +63,10 @@ export default function TextPropertyEditor() {
63
63
  label="Outline"
64
64
  property={properties.stylerTextOutline}
65
65
  />
66
+ <DropDownProperty
67
+ label="Shadow"
68
+ property={properties.stylerTextShadow}
69
+ />
66
70
  </ExpanderPropertyEditor>;
67
71
 
68
72
  }
@@ -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
- r.custom = styled.css `${name}: var(--styler-${name});`;
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;