@openlettermarketing/olc-react-sdk 0.0.2 → 0.0.5
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/build/index.js +47 -38
- package/build/index.js.map +1 -1
- package/build/types/App.d.ts +1 -1
- package/build/types/assets/images/modal-icons/save.d.ts +1 -1
- package/build/types/assets/images/templates/bi-fold-self-mailers.d.ts +3 -0
- package/build/types/assets/images/templates/custom-template.d.ts +1 -1
- package/build/types/assets/images/templates/dynamic-field.d.ts +1 -1
- package/build/types/assets/images/templates/edit-pencil-icon.d.ts +3 -0
- package/build/types/assets/images/templates/personal-letter.d.ts +3 -0
- package/build/types/assets/images/templates/postcard.d.ts +3 -0
- package/build/types/assets/images/templates/professional-letter.d.ts +3 -0
- package/build/types/assets/images/templates/real-penned-letters.d.ts +3 -0
- package/build/types/assets/images/templates/template-default-design.d.ts +3 -0
- package/build/types/assets/images/templates/tri-fold-self-mailers.d.ts +3 -0
- package/build/types/components/GenericUIBlocks/Input/index.d.ts +0 -1
- package/build/types/index.d.ts +4 -2
- package/build/types/utils/customStyles.d.ts +57 -0
- package/package.json +1 -1
package/build/types/App.d.ts
CHANGED
package/build/types/index.d.ts
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.scss';
|
|
3
2
|
import '@fontsource/inter/400.css';
|
|
4
3
|
import '@fontsource/inter/700.css';
|
|
5
4
|
import '@fontsource/inter/600.css';
|
|
5
|
+
import { CustomCSSProperties } from './utils/customStyles';
|
|
6
6
|
interface TemplateBuilderProps {
|
|
7
7
|
container: HTMLElement | null;
|
|
8
8
|
apiKey: string;
|
|
9
9
|
mode: 'test' | 'live';
|
|
10
10
|
secretKey: string;
|
|
11
11
|
returnRoute?: string | null;
|
|
12
|
-
styles?:
|
|
12
|
+
styles?: {
|
|
13
|
+
root?: CustomCSSProperties;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
declare const TemplateBuilder: ({ container, apiKey, secretKey, mode, returnRoute, styles, }: TemplateBuilderProps) => void;
|
|
15
17
|
export default TemplateBuilder;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface CustomCSSProperties extends React.CSSProperties {
|
|
3
|
+
'--sb-track-color'?: string;
|
|
4
|
+
'--sb-thumb-color'?: string;
|
|
5
|
+
'--primaryColor'?: string;
|
|
6
|
+
'--svgColor'?: string;
|
|
7
|
+
'--textColor'?: string;
|
|
8
|
+
'--productCardBgColor'?: string;
|
|
9
|
+
'--productCardBackgroundColorActive'?: string;
|
|
10
|
+
'--postCardBgColor'?: string;
|
|
11
|
+
'--postCardBackgroundColorActive'?: string;
|
|
12
|
+
'--postCardSVGColor'?: string;
|
|
13
|
+
'--inputBgColor'?: string;
|
|
14
|
+
'--inputTextColor'?: string;
|
|
15
|
+
'--inputBorderColor'?: string;
|
|
16
|
+
'--inputSearchAppliedBg'?: string;
|
|
17
|
+
'--inputSearchIcon'?: string;
|
|
18
|
+
'--selectBgColor'?: string;
|
|
19
|
+
'--selectTextColor'?: string;
|
|
20
|
+
'--selectBorderColor'?: string;
|
|
21
|
+
'--selectMenuBgColor'?: string;
|
|
22
|
+
'--selectOptionTextColor'?: string;
|
|
23
|
+
'--selectOptionBorderColor'?: string;
|
|
24
|
+
'--selectOptionFocusedColor'?: string;
|
|
25
|
+
'--selectOptionFocusedTextColor'?: string;
|
|
26
|
+
'--selectOptionSelectedColor'?: string;
|
|
27
|
+
'--selectOptionSelectedTextColor'?: string;
|
|
28
|
+
'--topbarBgColor'?: string;
|
|
29
|
+
'--sidepanelBgColor'?: string;
|
|
30
|
+
'--sidepanelTextColor'?: string;
|
|
31
|
+
'--sidepanelTextColorHover'?: string;
|
|
32
|
+
'--sidepanelSVGColor'?: string;
|
|
33
|
+
'--sidepanelSVGColorActive'?: string;
|
|
34
|
+
'--sidepanelOptionHoverColor'?: string;
|
|
35
|
+
'--customFieldBorderColor'?: string;
|
|
36
|
+
'--customFieldTextColor'?: string;
|
|
37
|
+
'--customFieldCopySVGColor'?: string;
|
|
38
|
+
'--cardBgColor'?: string;
|
|
39
|
+
'--cardTextColor'?: string;
|
|
40
|
+
'--dialogModalBgColor'?: string;
|
|
41
|
+
'--dialogModalHeadingColor'?: string;
|
|
42
|
+
'--dialogModalTextColor'?: string;
|
|
43
|
+
'--dialogModalSVGColor'?: string;
|
|
44
|
+
'--borderColor'?: string;
|
|
45
|
+
'--secondaryButtonBgColor'?: string;
|
|
46
|
+
'--secondaryButtonTextColor'?: string;
|
|
47
|
+
'--primaryButtonBgColor'?: string;
|
|
48
|
+
'--primaryButtonTextColor'?: string;
|
|
49
|
+
'--iconHoverBgColor'?: string;
|
|
50
|
+
'--mainBackgroundColor'?: string;
|
|
51
|
+
'--footerBgColor'?: string;
|
|
52
|
+
'--red'?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface Styles {
|
|
55
|
+
root: CustomCSSProperties;
|
|
56
|
+
}
|
|
57
|
+
export declare const customStyles: Styles;
|