tee3apps-cms-sdk-react 0.0.5 → 0.0.6
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/index.d.ts +189 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/App.css +37 -0
- package/src/PageFormComponents/BooleanField.tsx +56 -0
- package/src/PageFormComponents/BoxRenderer.tsx +229 -0
- package/src/PageFormComponents/Button.tsx +127 -0
- package/src/PageFormComponents/DateField.tsx +46 -0
- package/src/PageFormComponents/ImageComponent.tsx +163 -0
- package/src/PageFormComponents/InputField.tsx +62 -0
- package/src/PageFormComponents/NumberField.tsx +56 -0
- package/src/PageFormComponents/PageForm.css +67 -0
- package/src/PageFormComponents/PageForm.tsx +195 -0
- package/src/PageFormComponents/RadioField.tsx +59 -0
- package/src/PageFormComponents/RowComponent.tsx +82 -0
- package/src/PageFormComponents/SelectField.tsx +183 -0
- package/src/PageFormComponents/Styles/BooleanField.css +56 -0
- package/src/PageFormComponents/Styles/DateField.css +44 -0
- package/src/PageFormComponents/Styles/InputField.css +50 -0
- package/src/PageFormComponents/Styles/NumberField.css +57 -0
- package/src/PageFormComponents/Styles/RadioField.css +66 -0
- package/src/PageFormComponents/Styles/SelectField.css +264 -0
- package/src/PageFormComponents/TextComponent.tsx +45 -0
- package/src/index.ts +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,193 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
|
|
3
4
|
declare const Page: ({ data }: any) => react_jsx_runtime.JSX.Element;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
type LOVItem = {
|
|
7
|
+
id: string;
|
|
8
|
+
code: string;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
interface TextStyle {
|
|
12
|
+
headingTag: string;
|
|
13
|
+
fontSize: number;
|
|
14
|
+
fontStyle: {
|
|
15
|
+
isBold: boolean;
|
|
16
|
+
isItalic: boolean;
|
|
17
|
+
isUnderLine: boolean;
|
|
18
|
+
isStrikeThrough: boolean;
|
|
19
|
+
};
|
|
20
|
+
fontColor: string;
|
|
21
|
+
textAlign: string;
|
|
22
|
+
fontFamily: string;
|
|
23
|
+
}
|
|
24
|
+
interface ImageData {
|
|
25
|
+
isDynamic: boolean;
|
|
26
|
+
shape: string;
|
|
27
|
+
url: string;
|
|
28
|
+
alt: string;
|
|
29
|
+
}
|
|
30
|
+
interface ImageModeProps {
|
|
31
|
+
borderRadius: number;
|
|
32
|
+
width: string;
|
|
33
|
+
height: string;
|
|
34
|
+
bgColor?: string;
|
|
35
|
+
}
|
|
36
|
+
interface DeviceModes {
|
|
37
|
+
web: ImageModeProps | ButtonModeProps;
|
|
38
|
+
mobileweb: ImageModeProps | ButtonModeProps;
|
|
39
|
+
mobileapp: ImageModeProps | ButtonModeProps;
|
|
40
|
+
tablet: ImageModeProps | ButtonModeProps;
|
|
41
|
+
}
|
|
42
|
+
type ComponentProps = {
|
|
43
|
+
columnSize?: string;
|
|
44
|
+
name?: {
|
|
45
|
+
all?: string;
|
|
46
|
+
};
|
|
47
|
+
type?: string;
|
|
48
|
+
required?: boolean;
|
|
49
|
+
helperText?: string;
|
|
50
|
+
multiSelect?: boolean;
|
|
51
|
+
lov?: LOVItem[];
|
|
52
|
+
pattern?: string;
|
|
53
|
+
min?: number;
|
|
54
|
+
max?: number;
|
|
55
|
+
step?: number;
|
|
56
|
+
suffix?: string;
|
|
57
|
+
format?: string;
|
|
58
|
+
postaltype?: string;
|
|
59
|
+
textArea?: boolean;
|
|
60
|
+
minLength?: number;
|
|
61
|
+
maxLength?: number;
|
|
62
|
+
termsandcondition?: {
|
|
63
|
+
all?: string;
|
|
64
|
+
};
|
|
65
|
+
onText?: string;
|
|
66
|
+
offText?: string;
|
|
67
|
+
code?: string;
|
|
68
|
+
pd_id?: {
|
|
69
|
+
_id: string;
|
|
70
|
+
code: string;
|
|
71
|
+
name: object;
|
|
72
|
+
pd_type: string;
|
|
73
|
+
};
|
|
74
|
+
images?: {
|
|
75
|
+
all: ImageData;
|
|
76
|
+
};
|
|
77
|
+
linktype?: string;
|
|
78
|
+
link?: {
|
|
79
|
+
url: string;
|
|
80
|
+
target: string;
|
|
81
|
+
};
|
|
82
|
+
mode?: DeviceModes;
|
|
83
|
+
product?: {
|
|
84
|
+
_id: string;
|
|
85
|
+
code: string;
|
|
86
|
+
name: object;
|
|
87
|
+
pd_type: string;
|
|
88
|
+
pd_id?: any;
|
|
89
|
+
product_data?: any;
|
|
90
|
+
};
|
|
91
|
+
page?: {
|
|
92
|
+
_id: string;
|
|
93
|
+
code: string;
|
|
94
|
+
name: object;
|
|
95
|
+
pg_type: string;
|
|
96
|
+
facet_params: any[];
|
|
97
|
+
track_params: any[];
|
|
98
|
+
};
|
|
99
|
+
tag?: {
|
|
100
|
+
_id: string;
|
|
101
|
+
tag_id?: any;
|
|
102
|
+
code: string;
|
|
103
|
+
name: object;
|
|
104
|
+
tagtype: string;
|
|
105
|
+
};
|
|
106
|
+
text?: any;
|
|
107
|
+
style?: TextStyle;
|
|
108
|
+
height?: string;
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
bgColor?: string;
|
|
111
|
+
radius?: string;
|
|
112
|
+
};
|
|
113
|
+
type Component = {
|
|
114
|
+
name: string;
|
|
115
|
+
props: ComponentProps;
|
|
116
|
+
type: any[];
|
|
117
|
+
};
|
|
118
|
+
type Box = {
|
|
119
|
+
name: string;
|
|
120
|
+
props: {
|
|
121
|
+
bgColor: string;
|
|
122
|
+
bgImage: any;
|
|
123
|
+
align: string;
|
|
124
|
+
justify: string;
|
|
125
|
+
compOrder: string;
|
|
126
|
+
bgsize: string;
|
|
127
|
+
layout: string;
|
|
128
|
+
mode: {
|
|
129
|
+
web: {
|
|
130
|
+
colspan: number;
|
|
131
|
+
isVisible: boolean;
|
|
132
|
+
height: string;
|
|
133
|
+
top: string;
|
|
134
|
+
bottom: string;
|
|
135
|
+
left: string;
|
|
136
|
+
right: string;
|
|
137
|
+
radius: string;
|
|
138
|
+
};
|
|
139
|
+
mobileweb: any;
|
|
140
|
+
mobileapp: any;
|
|
141
|
+
tablet: any;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
components: Component[];
|
|
145
|
+
};
|
|
146
|
+
interface ButtonModeProps {
|
|
147
|
+
radius?: string;
|
|
148
|
+
borderRadius?: number;
|
|
149
|
+
bgColor?: string;
|
|
150
|
+
textstyle?: {
|
|
151
|
+
fontSize: number;
|
|
152
|
+
fontColor: string;
|
|
153
|
+
fontStyle: {
|
|
154
|
+
isBold: boolean;
|
|
155
|
+
isItalic: boolean;
|
|
156
|
+
isUnderLine: boolean;
|
|
157
|
+
isStrikeThrough: boolean;
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
type Row = {
|
|
162
|
+
name: string;
|
|
163
|
+
props: {
|
|
164
|
+
minHeight: string;
|
|
165
|
+
bgColor: string;
|
|
166
|
+
bgImage: string;
|
|
167
|
+
align: string;
|
|
168
|
+
justify: string;
|
|
169
|
+
nowrap: boolean;
|
|
170
|
+
bgsize: string;
|
|
171
|
+
mode: {
|
|
172
|
+
web: {
|
|
173
|
+
isScroll: boolean;
|
|
174
|
+
isVisible: boolean;
|
|
175
|
+
top: string;
|
|
176
|
+
bottom: string;
|
|
177
|
+
flexView: boolean;
|
|
178
|
+
};
|
|
179
|
+
mobileweb: any;
|
|
180
|
+
mobileapp: any;
|
|
181
|
+
tablet: any;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
columns: Box[];
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
interface PageFormProps {
|
|
188
|
+
jsonData: Row[];
|
|
189
|
+
onSubmit?: (data: Record<string, any>) => void;
|
|
190
|
+
}
|
|
191
|
+
declare const PageForm: React.FC<PageFormProps>;
|
|
192
|
+
|
|
193
|
+
export { Page, PageForm };
|