@pagenflow/email 1.1.14 → 1.3.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/dist/components/Icon.d.ts +35 -0
- package/dist/components/Text.d.ts +4 -0
- package/dist/index.cjs.js +1453 -17194
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +1453 -17194
- package/dist/index.esm.js.map +1 -1
- package/dist/types/IInnerLink.d.ts +9 -0
- package/dist/utils/isEqual.d.ts +30 -0
- package/dist/utils/memoUtils.d.ts +1 -1
- package/package.json +1 -5
- package/repo-header-image.png +0 -0
- package/dist/components/MyComponent.d.ts +0 -3
- package/dist/components/index.d.ts +0 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import IInnerLink from "../types/IInnerLink";
|
|
3
|
+
export interface IconConfig {
|
|
4
|
+
/** Icon identifier for the Iconify API */
|
|
5
|
+
iconIdentifier?: string;
|
|
6
|
+
/** Width of the icon */
|
|
7
|
+
width?: string | number;
|
|
8
|
+
/** Height of the icon */
|
|
9
|
+
height?: string | number;
|
|
10
|
+
/** Rotation angle in degrees */
|
|
11
|
+
rotate?: number;
|
|
12
|
+
/** Rotation orientation: clockwise or counter-clockwise */
|
|
13
|
+
rotateOrientation?: "cw" | "ccw";
|
|
14
|
+
/** Icon color (hex format for best compatibility) */
|
|
15
|
+
color?: string;
|
|
16
|
+
/** Link configuration for clickable icons */
|
|
17
|
+
innerLink?: IInnerLink;
|
|
18
|
+
/** Background color of the containing TD */
|
|
19
|
+
backgroundColor?: string;
|
|
20
|
+
/** Padding around the icon */
|
|
21
|
+
padding?: string;
|
|
22
|
+
/** Border radius for the icon container */
|
|
23
|
+
borderRadius?: string;
|
|
24
|
+
/** Horizontal alignment within the container */
|
|
25
|
+
justifyContent?: "start" | "center" | "end";
|
|
26
|
+
}
|
|
27
|
+
export type IconProps = {
|
|
28
|
+
config: IconConfig;
|
|
29
|
+
devNode?: ReactNode;
|
|
30
|
+
devMode?: boolean;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
};
|
|
33
|
+
declare function Icon({ config, devNode, devMode, children }: IconProps): import("react/jsx-runtime").JSX.Element | null;
|
|
34
|
+
declare const _default: import("react").MemoExoticComponent<typeof Icon>;
|
|
35
|
+
export default _default;
|
|
@@ -28,6 +28,10 @@ export interface TextConfig {
|
|
|
28
28
|
verticalAlign?: string;
|
|
29
29
|
/** Background color of the text block. */
|
|
30
30
|
backgroundColor?: string;
|
|
31
|
+
/** Opacity of the text (e.g., '0.5', '1'). */
|
|
32
|
+
opacity?: string | number;
|
|
33
|
+
/** White space handling (e.g., 'normal', 'nowrap', 'pre', 'pre-wrap'). */
|
|
34
|
+
whiteSpace?: string;
|
|
31
35
|
}
|
|
32
36
|
export type TextProps = {
|
|
33
37
|
config: TextConfig;
|