@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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface AppProps {
3
3
  secretKey: string;
4
4
  returnRoute?: string | null;
5
- styles?: React.CSSProperties;
5
+ styles?: any;
6
6
  }
7
7
  declare const App: React.FC<AppProps>;
8
8
  export default App;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const Save: () => React.JSX.Element;
2
+ declare const Save: (props: any) => React.JSX.Element;
3
3
  export default Save;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const biFoldSelfMailers: (props: any) => React.JSX.Element;
3
+ export default biFoldSelfMailers;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const CustomTemplate: () => React.JSX.Element;
2
+ declare const CustomTemplate: (props: any) => React.JSX.Element;
3
3
  export default CustomTemplate;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
- declare const DynamicField: () => React.JSX.Element;
2
+ declare const DynamicField: (props: any) => React.JSX.Element;
3
3
  export default DynamicField;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const editPencilIcon: (props: any) => React.JSX.Element;
3
+ export default editPencilIcon;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const PersonalLetter: (props: any) => React.JSX.Element;
3
+ export default PersonalLetter;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const postcard: (props: any) => React.JSX.Element;
3
+ export default postcard;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const ProfessionalLetter: (props: any) => React.JSX.Element;
3
+ export default ProfessionalLetter;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const realPennedLetters: (props: any) => React.JSX.Element;
3
+ export default realPennedLetters;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const templateDefaultDesign: (props: any) => React.JSX.Element;
3
+ export default templateDefaultDesign;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const triFoldSelfMailers: (props: any) => React.JSX.Element;
3
+ export default triFoldSelfMailers;
@@ -1,6 +1,5 @@
1
1
  import { ChangeEvent, FC } from 'react';
2
2
  import './styles.scss';
3
- import './styles.scss';
4
3
  interface InputProps {
5
4
  variant?: keyof JSX.IntrinsicElements;
6
5
  type: any;
@@ -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?: React.CSSProperties;
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openlettermarketing/olc-react-sdk",
3
3
  "private": false,
4
- "version": "0.0.2",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "description": "Simplify template builder integration for any product.",
7
7
  "main": "build/index.js",