@pagenflow/email 1.1.0 → 1.1.2
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/components/Column.d.ts +1 -25
- package/dist/components/Container.d.ts +1 -25
- package/dist/components/Row.d.ts +1 -27
- package/dist/components/Section.d.ts +1 -25
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +12 -11
- package/dist/index.esm.js.map +1 -1
- package/dist/types/index.d.ts +28 -4
- package/package.json +1 -1
|
@@ -1,35 +1,11 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { BorderConfig } from "../types";
|
|
2
3
|
export interface BackgroundImageType {
|
|
3
4
|
src: string;
|
|
4
5
|
repeat?: "no-repeat" | "repeat" | "repeat-x" | "repeat-y";
|
|
5
6
|
size?: "auto" | "cover" | "contain";
|
|
6
7
|
position?: string;
|
|
7
8
|
}
|
|
8
|
-
export interface BorderConfig {
|
|
9
|
-
width?: string;
|
|
10
|
-
style?: "solid" | "dashed" | "dotted" | "double";
|
|
11
|
-
color?: string;
|
|
12
|
-
top?: {
|
|
13
|
-
width: string;
|
|
14
|
-
style: string;
|
|
15
|
-
color: string;
|
|
16
|
-
};
|
|
17
|
-
right?: {
|
|
18
|
-
width: string;
|
|
19
|
-
style: string;
|
|
20
|
-
color: string;
|
|
21
|
-
};
|
|
22
|
-
bottom?: {
|
|
23
|
-
width: string;
|
|
24
|
-
style: string;
|
|
25
|
-
color: string;
|
|
26
|
-
};
|
|
27
|
-
left?: {
|
|
28
|
-
width: string;
|
|
29
|
-
style: string;
|
|
30
|
-
color: string;
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
9
|
export type ColumnConfig = {
|
|
34
10
|
borderRadius?: string;
|
|
35
11
|
padding?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
+
import { BorderConfig } from "../types";
|
|
2
3
|
export type WidthType = "full" | "fixed";
|
|
3
4
|
export type WidthDistributionType = "equals" | "ratio" | "manual";
|
|
4
5
|
export interface RatioConstraint {
|
|
@@ -14,31 +15,6 @@ export type ChildrenConstraints = {
|
|
|
14
15
|
widthDistributionType: "manual";
|
|
15
16
|
widths: string[];
|
|
16
17
|
};
|
|
17
|
-
export interface BorderConfig {
|
|
18
|
-
width?: string;
|
|
19
|
-
style?: "solid" | "dashed" | "dotted" | "double";
|
|
20
|
-
color?: string;
|
|
21
|
-
top?: {
|
|
22
|
-
width: string;
|
|
23
|
-
style: string;
|
|
24
|
-
color: string;
|
|
25
|
-
};
|
|
26
|
-
right?: {
|
|
27
|
-
width: string;
|
|
28
|
-
style: string;
|
|
29
|
-
color: string;
|
|
30
|
-
};
|
|
31
|
-
bottom?: {
|
|
32
|
-
width: string;
|
|
33
|
-
style: string;
|
|
34
|
-
color: string;
|
|
35
|
-
};
|
|
36
|
-
left?: {
|
|
37
|
-
width: string;
|
|
38
|
-
style: string;
|
|
39
|
-
color: string;
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
18
|
export interface ContainerConfig {
|
|
43
19
|
widthType: WidthType;
|
|
44
20
|
childrenConstraints: ChildrenConstraints;
|
package/dist/components/Row.d.ts
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
export type AlignItems = "start" | "center" | "end";
|
|
4
|
-
export interface BorderConfig {
|
|
5
|
-
width?: string;
|
|
6
|
-
style?: "solid" | "dashed" | "dotted" | "double";
|
|
7
|
-
color?: string;
|
|
8
|
-
top?: {
|
|
9
|
-
width: string;
|
|
10
|
-
style: string;
|
|
11
|
-
color: string;
|
|
12
|
-
};
|
|
13
|
-
right?: {
|
|
14
|
-
width: string;
|
|
15
|
-
style: string;
|
|
16
|
-
color: string;
|
|
17
|
-
};
|
|
18
|
-
bottom?: {
|
|
19
|
-
width: string;
|
|
20
|
-
style: string;
|
|
21
|
-
color: string;
|
|
22
|
-
};
|
|
23
|
-
left?: {
|
|
24
|
-
width: string;
|
|
25
|
-
style: string;
|
|
26
|
-
color: string;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
2
|
+
import { AlignItems, BorderConfig, JustifyContent } from "../types";
|
|
29
3
|
export interface RowConfig {
|
|
30
4
|
gap?: string;
|
|
31
5
|
justifyContent?: JustifyContent;
|
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
width?: string;
|
|
4
|
-
style?: "solid" | "dashed" | "dotted" | "double";
|
|
5
|
-
color?: string;
|
|
6
|
-
top?: {
|
|
7
|
-
width: string;
|
|
8
|
-
style: string;
|
|
9
|
-
color: string;
|
|
10
|
-
};
|
|
11
|
-
right?: {
|
|
12
|
-
width: string;
|
|
13
|
-
style: string;
|
|
14
|
-
color: string;
|
|
15
|
-
};
|
|
16
|
-
bottom?: {
|
|
17
|
-
width: string;
|
|
18
|
-
style: string;
|
|
19
|
-
color: string;
|
|
20
|
-
};
|
|
21
|
-
left?: {
|
|
22
|
-
width: string;
|
|
23
|
-
style: string;
|
|
24
|
-
color: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
2
|
+
import { BorderConfig } from "../types";
|
|
27
3
|
export type SectionConfig = {
|
|
28
4
|
sectionType: "header" | "footer" | "content";
|
|
29
5
|
gap?: string;
|