@sc-360-v2/storefront-cms-library 0.0.3 → 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/README.md +7 -35
- package/dist/builder.js +2 -0
- package/dist/builder.js.LICENSE.txt +1 -0
- package/dist/button.scss +139 -0
- package/dist/css.js +1 -1
- package/dist/faq.scss +136 -0
- package/dist/functions.js +1 -0
- package/dist/htmlElement.js +1 -1
- package/dist/icons.js +1 -0
- package/dist/index.js +1 -1
- package/dist/tab-panel.scss +93 -0
- package/dist/text-editor.scss +328 -0
- package/dist/types/builder/elements/button/index.d.ts +26 -0
- package/dist/types/builder/elements/code/index.d.ts +59 -0
- package/dist/types/builder/elements/common.d.ts +25 -0
- package/dist/types/builder/elements/extra.d.ts +70 -0
- package/dist/types/builder/elements/faq/index.d.ts +30 -0
- package/dist/types/builder/elements/gallery-slider/index.d.ts +30 -0
- package/dist/types/builder/elements/grid/index.d.ts +63 -0
- package/dist/types/builder/elements/image/index.d.ts +30 -0
- package/dist/types/builder/elements/section/index.d.ts +60 -0
- package/dist/types/builder/elements/social/index.d.ts +36 -0
- package/dist/types/builder/elements/tab/index.d.ts +30 -0
- package/dist/types/builder/elements/table/index.d.ts +30 -0
- package/dist/types/builder/elements/text-editor/index.d.ts +29 -0
- package/dist/types/builder/elements/video/index.d.ts +30 -0
- package/dist/types/builder/enums/cssVariables.d.ts +361 -0
- package/dist/types/builder/enums/index.d.ts +78 -0
- package/dist/types/builder/index.d.ts +18 -0
- package/dist/types/builder/interfaces/cms-tools.d.ts +4 -0
- package/dist/types/builder/interfaces/global.d.ts +75 -0
- package/dist/types/builder/tools/element-edit/button.d.ts +25 -0
- package/dist/types/builder/tools/element-edit/code.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/common.d.ts +63 -0
- package/dist/types/builder/tools/element-edit/faq.d.ts +41 -0
- package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +82 -0
- package/dist/types/builder/tools/element-edit/image.d.ts +26 -0
- package/dist/types/builder/tools/element-edit/index.d.ts +13 -0
- package/dist/types/builder/tools/element-edit/section.d.ts +15 -0
- package/dist/types/builder/tools/element-edit/slideShowLayouter.d.ts +21 -0
- package/dist/types/builder/tools/element-edit/social.d.ts +62 -0
- package/dist/types/builder/tools/element-edit/table.d.ts +200 -0
- package/dist/types/builder/tools/element-edit/tabs.d.ts +166 -0
- package/dist/types/builder/tools/element-edit/video.d.ts +73 -0
- package/dist/types/builder/utilities/global.d.ts +4 -0
- package/dist/types/css/cssVariables.d.ts +7 -0
- package/dist/types/export.d.ts +3 -0
- package/dist/types/global/attributes.d.ts +125 -0
- package/dist/types/global/index.d.ts +0 -0
- package/dist/types/global/style-properties.d.ts +49 -0
- package/dist/types/global/types.d.ts +36 -0
- package/dist/types/helper/helper-functions.d.ts +1 -0
- package/dist/types/html-elements/element-types.d.ts +131 -0
- package/dist/types/html-elements/elements.d.ts +89 -0
- package/dist/types/icons/cms-svg-icons.d.ts +5 -0
- package/dist/types/icons/icons.d.ts +2 -0
- package/dist/widget.scss +1 -0
- package/package.json +104 -70
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
// Define SCSS variables for colors, font, and sizes
|
|
2
|
+
$toolbar-bg-color: #ffffff;
|
|
3
|
+
$toolbar-border-color: #eaecf0;
|
|
4
|
+
$icon-color: #667085;
|
|
5
|
+
$active-icon-color: #162578;
|
|
6
|
+
$active-bg-color: #583fff;
|
|
7
|
+
$dropdown-font-color: #344054;
|
|
8
|
+
$font-family: "Lato", Arial, sans-serif;
|
|
9
|
+
$font-size: 16px;
|
|
10
|
+
$border-color: #a5b4fc;
|
|
11
|
+
$focus-border-color: #5aea79;
|
|
12
|
+
$focus-box-shadow:
|
|
13
|
+
0px 0px 0px 4px #ced4f6,
|
|
14
|
+
0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
15
|
+
$focus-outline-color: #818cf8;
|
|
16
|
+
$active-border-color: #8190e8;
|
|
17
|
+
$active-bg-light-color: #f5f6fd;
|
|
18
|
+
$chip-bg-color: #e3dfff;
|
|
19
|
+
$chip-border-color: #d5cfff;
|
|
20
|
+
$chip-remove-color: rgb(0, 54, 172);
|
|
21
|
+
|
|
22
|
+
// Style for text editor main container
|
|
23
|
+
.text_editor_main {
|
|
24
|
+
.editor {
|
|
25
|
+
width: max-content;
|
|
26
|
+
min-width: 130px;
|
|
27
|
+
padding: 0px 8px;
|
|
28
|
+
outline: none;
|
|
29
|
+
position: relative;
|
|
30
|
+
word-break: break-all;
|
|
31
|
+
align-items: center;
|
|
32
|
+
z-index: 100;
|
|
33
|
+
color: #111827; // var(--gray-900)
|
|
34
|
+
border: 1px solid $border-color;
|
|
35
|
+
|
|
36
|
+
&:focus-visible {
|
|
37
|
+
border: 1px solid $focus-border-color;
|
|
38
|
+
box-shadow: $focus-box-shadow;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&:focus {
|
|
42
|
+
outline: 0 none;
|
|
43
|
+
outline-offset: 0;
|
|
44
|
+
box-shadow:
|
|
45
|
+
0px 1px 2px rgba(16, 24, 40, 0.05),
|
|
46
|
+
0px 0px 0px 2px $focus-outline-color;
|
|
47
|
+
border-radius: 8px;
|
|
48
|
+
border: 1px solid $focus-outline-color;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.input-box {
|
|
53
|
+
width: fit-content;
|
|
54
|
+
border: 1px solid #b9b8b8;
|
|
55
|
+
padding: 5px;
|
|
56
|
+
border-radius: 5px;
|
|
57
|
+
margin: 10px 0px;
|
|
58
|
+
line-height: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.addCode-btn {
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
margin: 10px;
|
|
64
|
+
padding: 5px 15px;
|
|
65
|
+
background: $active-bg-color;
|
|
66
|
+
border: 1px solid #fff;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
color: #fff;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.chip-list {
|
|
72
|
+
border: 1px solid #e5e7eb;
|
|
73
|
+
border-radius: 8px;
|
|
74
|
+
background-color: #fff;
|
|
75
|
+
padding: 12px;
|
|
76
|
+
box-shadow:
|
|
77
|
+
0px 4px 6px -2px rgba(16, 24, 40, 0.03),
|
|
78
|
+
0px 12px 16px -4px rgba(16, 24, 40, 0.08);
|
|
79
|
+
position: absolute;
|
|
80
|
+
width: 100%;
|
|
81
|
+
z-index: 1;
|
|
82
|
+
|
|
83
|
+
li {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
height: 20px;
|
|
87
|
+
width: fit-content;
|
|
88
|
+
border: 1px solid #d1d5db; // var(--gray-300)
|
|
89
|
+
border-radius: 6px;
|
|
90
|
+
padding: 4px;
|
|
91
|
+
margin-bottom: 16px;
|
|
92
|
+
gap: 4px;
|
|
93
|
+
font-size: 12px;
|
|
94
|
+
|
|
95
|
+
&:last-child {
|
|
96
|
+
margin-bottom: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.app-icon {
|
|
100
|
+
width: 16px;
|
|
101
|
+
height: 16px;
|
|
102
|
+
border-radius: 50%;
|
|
103
|
+
object-fit: contain;
|
|
104
|
+
border: 1px solid #f3f4f6; // var(--gray-100)
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.attr-type {
|
|
108
|
+
height: 16px;
|
|
109
|
+
width: 16px;
|
|
110
|
+
object-fit: contain;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.sc_chip_main {
|
|
116
|
+
display: inline-block;
|
|
117
|
+
padding: 0 4px;
|
|
118
|
+
border-radius: 4px;
|
|
119
|
+
align-items: center;
|
|
120
|
+
margin: 3px 3px !important;
|
|
121
|
+
user-select: none;
|
|
122
|
+
position: relative;
|
|
123
|
+
background-color: $chip-bg-color;
|
|
124
|
+
border: 1px solid $chip-border-color;
|
|
125
|
+
color: $active-bg-color;
|
|
126
|
+
|
|
127
|
+
.remove-chip {
|
|
128
|
+
margin-left: 5px;
|
|
129
|
+
color: $chip-remove-color;
|
|
130
|
+
font-weight: bold;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
img {
|
|
134
|
+
border-radius: 50%;
|
|
135
|
+
width: 16px;
|
|
136
|
+
height: 16px;
|
|
137
|
+
margin-right: 5px;
|
|
138
|
+
vertical-align: text-top;
|
|
139
|
+
margin-bottom: 1px;
|
|
140
|
+
|
|
141
|
+
&:nth-child(2) {
|
|
142
|
+
border: 0;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&::after {
|
|
147
|
+
content: attr(data-title);
|
|
148
|
+
position: absolute;
|
|
149
|
+
background-color: #fff;
|
|
150
|
+
color: #000;
|
|
151
|
+
padding: 5px 10px;
|
|
152
|
+
box-shadow:
|
|
153
|
+
0px 4px 6px -2px rgba(16, 24, 40, 0.03),
|
|
154
|
+
0px 12px 16px -4px rgba(16, 24, 40, 0.08);
|
|
155
|
+
font-size: 12px;
|
|
156
|
+
display: none;
|
|
157
|
+
bottom: 20px;
|
|
158
|
+
z-index: 1000;
|
|
159
|
+
border-radius: 6px;
|
|
160
|
+
border: 1px solid #e5e7eb; // var(--gray-200)
|
|
161
|
+
margin-top: 20px;
|
|
162
|
+
left: 30%;
|
|
163
|
+
transform: translateX(-30%);
|
|
164
|
+
word-break: normal;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
&:hover {
|
|
168
|
+
&::after,
|
|
169
|
+
&::before {
|
|
170
|
+
display: inline;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&::after {
|
|
174
|
+
z-index: 100;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&::before {
|
|
178
|
+
display: inline;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&::before {
|
|
183
|
+
content: "";
|
|
184
|
+
position: absolute;
|
|
185
|
+
width: 0;
|
|
186
|
+
height: 0;
|
|
187
|
+
border-style: solid;
|
|
188
|
+
border-width: 8px 8px 0;
|
|
189
|
+
border-color: transparent #fff transparent transparent;
|
|
190
|
+
bottom: 100%;
|
|
191
|
+
z-index: 1000;
|
|
192
|
+
transform: rotate(45deg);
|
|
193
|
+
left: 10px;
|
|
194
|
+
display: none;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.p-autocomplete.p-disabled {
|
|
199
|
+
background-color: #f9fafb !important; // var(--gray-50)
|
|
200
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
201
|
+
color: #6b7280; // var(--gray-500)
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.accordion {
|
|
205
|
+
width: 100%;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.accordion_section {
|
|
209
|
+
border-bottom: 1px solid #d1d5db;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.accordion_header {
|
|
213
|
+
background-color: #f3f4f6;
|
|
214
|
+
color: #374151;
|
|
215
|
+
padding: 12px;
|
|
216
|
+
cursor: pointer;
|
|
217
|
+
font-size: 16px;
|
|
218
|
+
font-weight: bold;
|
|
219
|
+
text-align: left;
|
|
220
|
+
border: none;
|
|
221
|
+
width: 100%;
|
|
222
|
+
display: flex;
|
|
223
|
+
justify-content: space-between;
|
|
224
|
+
|
|
225
|
+
&:focus {
|
|
226
|
+
outline: 2px solid $focus-outline-color;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.accordion_content {
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
transition: max-height 0.2s ease-out;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.accordion_body {
|
|
236
|
+
padding: 16px;
|
|
237
|
+
background-color: #ffffff;
|
|
238
|
+
color: #374151;
|
|
239
|
+
font-size: 14px;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.active {
|
|
243
|
+
max-height: 500px;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
.inactive {
|
|
247
|
+
max-height: 0px;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Apply font-family to the editor view
|
|
252
|
+
.fr-view {
|
|
253
|
+
font-family: $font-family;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
// Style for toolbar command button icons
|
|
257
|
+
.fr-toolbar,
|
|
258
|
+
.fr-popup,
|
|
259
|
+
.fr-modal {
|
|
260
|
+
.fr-command.fr-btn {
|
|
261
|
+
svg path {
|
|
262
|
+
fill: $icon-color !important;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// Style for inline toolbar
|
|
268
|
+
.fr-toolbar.fr-inline {
|
|
269
|
+
border-radius: 88px;
|
|
270
|
+
border: 1px solid $toolbar-border-color;
|
|
271
|
+
background: $toolbar-bg-color;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// Style for dropdowns and selections
|
|
275
|
+
.fr-toolbar,
|
|
276
|
+
.fr-popup,
|
|
277
|
+
.fr-modal {
|
|
278
|
+
.fr-command.fr-btn.fr-dropdown.fr-selection {
|
|
279
|
+
span {
|
|
280
|
+
color: $dropdown-font-color;
|
|
281
|
+
font-family: $font-family;
|
|
282
|
+
font-size: $font-size;
|
|
283
|
+
font-style: normal;
|
|
284
|
+
font-weight: 500;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// Style for active toolbar buttons
|
|
290
|
+
.fr-toolbar,
|
|
291
|
+
.fr-popup,
|
|
292
|
+
.fr-modal {
|
|
293
|
+
.fr-command.fr-btn.fr-active:not(.fr-dropdown) {
|
|
294
|
+
border-radius: 4px;
|
|
295
|
+
border: 1px solid $active-border-color;
|
|
296
|
+
background: $active-bg-light-color;
|
|
297
|
+
|
|
298
|
+
svg path {
|
|
299
|
+
fill: $active-icon-color !important; // Apply icon color
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.fr-toolbar .fr-command.fr-btn.fr-dropdown.fr-selection span,
|
|
305
|
+
.fr-popup .fr-command.fr-btn.fr-dropdown.fr-selection span,
|
|
306
|
+
.fr-modal .fr-command.fr-btn.fr-dropdown.fr-selection span {
|
|
307
|
+
width: fit-content !important;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.fr-popup .fr-color-set > span {
|
|
311
|
+
border-radius: 50%;
|
|
312
|
+
margin: 3px;
|
|
313
|
+
border: 0.2px solid #eae6e6;
|
|
314
|
+
box-shadow: #000;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.fr-dropdown-menu {
|
|
318
|
+
// border: 1px solid #eaecf0;
|
|
319
|
+
border-radius: 8px !important;
|
|
320
|
+
}
|
|
321
|
+
.fr-popup .fr-buttons.fr-tabs {
|
|
322
|
+
display: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.fr-popup[data-inst1="true"] {
|
|
326
|
+
left: 260px !important;
|
|
327
|
+
top: 200px !important;
|
|
328
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface ButtonStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
justifySelf?: JustifySelfValue;
|
|
15
|
+
alignSelf?: AlignSelfValue;
|
|
16
|
+
}
|
|
17
|
+
export declare const getDefaultStyles: () => ButtonStyleProperties;
|
|
18
|
+
export interface CMSButtonInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
19
|
+
attributes: {
|
|
20
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
21
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
22
|
+
CUSTOM: any;
|
|
23
|
+
};
|
|
24
|
+
styles: ButtonStyleProperties;
|
|
25
|
+
childrenStyles?: CommonStyleProperties;
|
|
26
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { DisplayValue, ResponsiveBehaviourTypes } from "../../../global/types";
|
|
3
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
4
|
+
import { CMSGridsContainer } from "../grid";
|
|
5
|
+
import { BuilderAttributes } from "../common";
|
|
6
|
+
export interface CodeAttributes extends CMSHTMLAttributes {
|
|
7
|
+
role?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
ariaDescribedBy?: string;
|
|
10
|
+
id?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
lang?: string;
|
|
13
|
+
dataMeta?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CodeStyleProperties extends CommonStyleProperties {
|
|
16
|
+
minHeight?: string;
|
|
17
|
+
height?: string;
|
|
18
|
+
minWidth?: string;
|
|
19
|
+
maxWidth?: string;
|
|
20
|
+
maxHeight?: string;
|
|
21
|
+
gridArea?: string;
|
|
22
|
+
display?: DisplayValue;
|
|
23
|
+
boxSizing?: string;
|
|
24
|
+
rowGap?: string;
|
|
25
|
+
columnGap?: string;
|
|
26
|
+
gridTemplateRows?: string;
|
|
27
|
+
gridTemplateColumns?: string;
|
|
28
|
+
}
|
|
29
|
+
export declare const getDefaultStyles: () => CodeStyleProperties;
|
|
30
|
+
export declare const getSectionDefaultStyles: () => CodeStyleProperties;
|
|
31
|
+
export interface VariationConditionInterface {
|
|
32
|
+
customer?: any[];
|
|
33
|
+
user?: any[];
|
|
34
|
+
relation?: any;
|
|
35
|
+
}
|
|
36
|
+
export interface CodeVariationInterface {
|
|
37
|
+
condition?: VariationConditionInterface;
|
|
38
|
+
attributes?: {
|
|
39
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType">;
|
|
40
|
+
HTML?: CodeAttributes;
|
|
41
|
+
CUSTOM?: any;
|
|
42
|
+
};
|
|
43
|
+
styles?: CodeStyleProperties;
|
|
44
|
+
editedStyles?: CommonStyleProperties;
|
|
45
|
+
sectionStyles?: CommonStyleProperties;
|
|
46
|
+
grids?: CMSGridsContainer;
|
|
47
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
48
|
+
highestGrid?: number | any;
|
|
49
|
+
gtc?: CMSGridsContainer;
|
|
50
|
+
gtr?: CMSGridsContainer;
|
|
51
|
+
}
|
|
52
|
+
export interface CMSCodeInterface {
|
|
53
|
+
id?: string | number;
|
|
54
|
+
uniqueId?: string | number;
|
|
55
|
+
variations?: {
|
|
56
|
+
[key: string]: CodeVariationInterface;
|
|
57
|
+
};
|
|
58
|
+
styles?: CodeStyleProperties;
|
|
59
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ResponsiveBehaviourTypes } from "../../global/types";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../global/attributes";
|
|
3
|
+
import { CommonStyleProperties } from "../../global/style-properties";
|
|
4
|
+
export interface BuilderAttributes {
|
|
5
|
+
dataType?: string;
|
|
6
|
+
dataDivType?: string;
|
|
7
|
+
dataElementType?: string;
|
|
8
|
+
dataWidgetType?: string;
|
|
9
|
+
dataElementSubType?: string;
|
|
10
|
+
dataChildCount?: string | number;
|
|
11
|
+
}
|
|
12
|
+
export interface CMSElementAttributes {
|
|
13
|
+
HTML?: CMSHTMLAttributes;
|
|
14
|
+
BUILDER?: BuilderAttributes;
|
|
15
|
+
CUSTOM?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface CMSElementInterface {
|
|
18
|
+
id: string | number;
|
|
19
|
+
styles: CommonStyleProperties;
|
|
20
|
+
attributes: CMSElementAttributes;
|
|
21
|
+
uniqueKey: string | number;
|
|
22
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
23
|
+
builderData?: any;
|
|
24
|
+
controls?: any;
|
|
25
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface Events {
|
|
3
|
+
onCopy?: React.ClipboardEventHandler<HTMLElement>;
|
|
4
|
+
onCut?: React.ClipboardEventHandler<HTMLElement>;
|
|
5
|
+
onPaste?: React.ClipboardEventHandler<HTMLElement>;
|
|
6
|
+
onCompositionEnd?: React.CompositionEventHandler<HTMLElement>;
|
|
7
|
+
onCompositionStart?: React.CompositionEventHandler<HTMLElement>;
|
|
8
|
+
onCompositionUpdate?: React.CompositionEventHandler<HTMLElement>;
|
|
9
|
+
onFocus?: React.FocusEventHandler<HTMLElement>;
|
|
10
|
+
onBlur?: React.FocusEventHandler<HTMLElement>;
|
|
11
|
+
onChange?: React.FormEventHandler<HTMLElement>;
|
|
12
|
+
onInput?: React.FormEventHandler<HTMLElement>;
|
|
13
|
+
onSubmit?: React.FormEventHandler<HTMLElement>;
|
|
14
|
+
onLoad?: React.ReactEventHandler<HTMLElement>;
|
|
15
|
+
onError?: React.ReactEventHandler<HTMLElement>;
|
|
16
|
+
onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
|
|
17
|
+
onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
|
|
18
|
+
onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
|
|
19
|
+
onAbort?: React.ReactEventHandler<HTMLElement>;
|
|
20
|
+
onCanPlay?: React.ReactEventHandler<HTMLElement>;
|
|
21
|
+
onCanPlayThrough?: React.ReactEventHandler<HTMLElement>;
|
|
22
|
+
onDurationChange?: React.ReactEventHandler<HTMLElement>;
|
|
23
|
+
onEmptied?: React.ReactEventHandler<HTMLElement>;
|
|
24
|
+
onEncrypted?: React.ReactEventHandler<HTMLElement>;
|
|
25
|
+
onEnded?: React.ReactEventHandler<HTMLElement>;
|
|
26
|
+
onLoadedData?: React.ReactEventHandler<HTMLElement>;
|
|
27
|
+
onLoadedMetadata?: React.ReactEventHandler<HTMLElement>;
|
|
28
|
+
onLoadStart?: React.ReactEventHandler<HTMLElement>;
|
|
29
|
+
onPause?: React.ReactEventHandler<HTMLElement>;
|
|
30
|
+
onPlay?: React.ReactEventHandler<HTMLElement>;
|
|
31
|
+
onPlaying?: React.ReactEventHandler<HTMLElement>;
|
|
32
|
+
onProgress?: React.ReactEventHandler<HTMLElement>;
|
|
33
|
+
onRateChange?: React.ReactEventHandler<HTMLElement>;
|
|
34
|
+
onSeeked?: React.ReactEventHandler<HTMLElement>;
|
|
35
|
+
onSeeking?: React.ReactEventHandler<HTMLElement>;
|
|
36
|
+
onStalled?: React.ReactEventHandler<HTMLElement>;
|
|
37
|
+
onSuspend?: React.ReactEventHandler<HTMLElement>;
|
|
38
|
+
onTimeUpdate?: React.ReactEventHandler<HTMLElement>;
|
|
39
|
+
onVolumeChange?: React.ReactEventHandler<HTMLElement>;
|
|
40
|
+
onWaiting?: React.ReactEventHandler<HTMLElement>;
|
|
41
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
42
|
+
onContextMenu?: React.MouseEventHandler<HTMLElement>;
|
|
43
|
+
onDoubleClick?: React.MouseEventHandler<HTMLElement>;
|
|
44
|
+
onDrag?: React.DragEventHandler<HTMLElement>;
|
|
45
|
+
onDragEnd?: React.DragEventHandler<HTMLElement>;
|
|
46
|
+
onDragEnter?: React.DragEventHandler<HTMLElement>;
|
|
47
|
+
onDragExit?: React.DragEventHandler<HTMLElement>;
|
|
48
|
+
onDragLeave?: React.DragEventHandler<HTMLElement>;
|
|
49
|
+
onDragOver?: React.DragEventHandler<HTMLElement>;
|
|
50
|
+
onDragStart?: React.DragEventHandler<HTMLElement>;
|
|
51
|
+
onDrop?: React.DragEventHandler<HTMLElement>;
|
|
52
|
+
onMouseDown?: React.MouseEventHandler<HTMLElement>;
|
|
53
|
+
onMouseEnter?: React.MouseEventHandler<HTMLElement>;
|
|
54
|
+
onMouseLeave?: React.MouseEventHandler<HTMLElement>;
|
|
55
|
+
onMouseMove?: React.MouseEventHandler<HTMLElement>;
|
|
56
|
+
onMouseOut?: React.MouseEventHandler<HTMLElement>;
|
|
57
|
+
onMouseOver?: React.MouseEventHandler<HTMLElement>;
|
|
58
|
+
onMouseUp?: React.MouseEventHandler<HTMLElement>;
|
|
59
|
+
onSelect?: React.ReactEventHandler<HTMLElement>;
|
|
60
|
+
onTouchCancel?: React.TouchEventHandler<HTMLElement>;
|
|
61
|
+
onTouchEnd?: React.TouchEventHandler<HTMLElement>;
|
|
62
|
+
onTouchMove?: React.TouchEventHandler<HTMLElement>;
|
|
63
|
+
onTouchStart?: React.TouchEventHandler<HTMLElement>;
|
|
64
|
+
onScroll?: React.UIEventHandler<HTMLElement>;
|
|
65
|
+
onWheel?: React.WheelEventHandler<HTMLElement>;
|
|
66
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLElement>;
|
|
67
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLElement>;
|
|
68
|
+
onAnimationIteration?: React.AnimationEventHandler<HTMLElement>;
|
|
69
|
+
onTransitionEnd?: React.TransitionEventHandler<HTMLElement>;
|
|
70
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface FaqStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
marginLeft?: MarginValue;
|
|
15
|
+
marginTop?: MarginValue;
|
|
16
|
+
marginBottom?: MarginValue;
|
|
17
|
+
marginRight?: MarginValue;
|
|
18
|
+
justifySelf?: JustifySelfValue;
|
|
19
|
+
alignSelf?: AlignSelfValue;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultStyles: () => FaqStyleProperties;
|
|
22
|
+
export interface CMSFaqSliderInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
23
|
+
attributes: {
|
|
24
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
25
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
26
|
+
CUSTOM: any;
|
|
27
|
+
};
|
|
28
|
+
styles: FaqStyleProperties;
|
|
29
|
+
childrenStyles?: CommonStyleProperties;
|
|
30
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface GallerySliderStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
marginLeft?: MarginValue;
|
|
15
|
+
marginTop?: MarginValue;
|
|
16
|
+
marginBottom?: MarginValue;
|
|
17
|
+
marginRight?: MarginValue;
|
|
18
|
+
justifySelf?: JustifySelfValue;
|
|
19
|
+
alignSelf?: AlignSelfValue;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultStyles: () => GallerySliderStyleProperties;
|
|
22
|
+
export interface CMSGallerySliderInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
23
|
+
attributes: {
|
|
24
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
25
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
26
|
+
CUSTOM: any;
|
|
27
|
+
};
|
|
28
|
+
styles: GallerySliderStyleProperties;
|
|
29
|
+
childrenStyles?: CommonStyleProperties;
|
|
30
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { DisplayValue, ResponsiveBehaviourTypes, SizeTypeValue } from "../../../global/types";
|
|
3
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
4
|
+
import { BuilderAttributes } from "../common";
|
|
5
|
+
import { SizeInterface } from "../../interfaces/global";
|
|
6
|
+
export interface GridStyleProperties extends CommonStyleProperties {
|
|
7
|
+
minHeight: string;
|
|
8
|
+
height: string;
|
|
9
|
+
minWidth: string;
|
|
10
|
+
maxWidth: string;
|
|
11
|
+
maxHeight: string;
|
|
12
|
+
gridArea: string;
|
|
13
|
+
display: DisplayValue;
|
|
14
|
+
boxSizing: string;
|
|
15
|
+
rowGap: string;
|
|
16
|
+
columnGap: string;
|
|
17
|
+
gridTemplateRows: string;
|
|
18
|
+
gridTemplateColumns: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const getDefaultStyles: () => GridStyleProperties;
|
|
21
|
+
type AriaRoleValue = "grid" | "gridcell" | "row" | "rowgroup" | "presentation" | "none" | "button" | "link" | string;
|
|
22
|
+
type AriaLabelValue = string;
|
|
23
|
+
type AriaHiddenValue = "true" | "false";
|
|
24
|
+
type AriaLiveValue = "off" | "polite" | "assertive";
|
|
25
|
+
type LangValue = string;
|
|
26
|
+
export interface CommonGridElementAttributes extends CMSHTMLAttributes {
|
|
27
|
+
role?: AriaRoleValue;
|
|
28
|
+
ariaLabel?: AriaLabelValue;
|
|
29
|
+
ariaHidden?: AriaHiddenValue;
|
|
30
|
+
ariaLive?: AriaLiveValue;
|
|
31
|
+
ariaDescribedBy?: string;
|
|
32
|
+
ariaControls?: string;
|
|
33
|
+
lang?: LangValue;
|
|
34
|
+
dataType?: string;
|
|
35
|
+
dataDivType?: string;
|
|
36
|
+
dataElementType?: string;
|
|
37
|
+
dataWidgetType?: string;
|
|
38
|
+
id?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface CMSGridInterface {
|
|
41
|
+
responsiveBehaviour: ResponsiveBehaviourTypes;
|
|
42
|
+
id?: string | number;
|
|
43
|
+
styles: GridStyleProperties;
|
|
44
|
+
editedStyles?: CommonStyleProperties;
|
|
45
|
+
children: any;
|
|
46
|
+
attributes: {
|
|
47
|
+
BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType">;
|
|
48
|
+
HTML?: CommonGridElementAttributes;
|
|
49
|
+
CUSTOM?: any;
|
|
50
|
+
};
|
|
51
|
+
size?: SizeInterface;
|
|
52
|
+
uniqueSize?: SizeInterface;
|
|
53
|
+
number?: SizeInterface;
|
|
54
|
+
visible?: boolean;
|
|
55
|
+
gtccolorder?: number;
|
|
56
|
+
gtrroworder?: number;
|
|
57
|
+
type?: SizeTypeValue;
|
|
58
|
+
uniqueKey?: string;
|
|
59
|
+
}
|
|
60
|
+
export interface CMSGridsContainer {
|
|
61
|
+
[key: string]: CMSGridInterface;
|
|
62
|
+
}
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { CommonStyleProperties } from "../../../global/style-properties";
|
|
2
|
+
import { CMSHTMLAttributes } from "../../../global/attributes";
|
|
3
|
+
import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
|
|
4
|
+
import { BuilderAttributes, CMSElementInterface } from "../common";
|
|
5
|
+
export interface ImageStyleProperties extends CommonStyleProperties {
|
|
6
|
+
minHeight?: MinHeightValue;
|
|
7
|
+
height?: HeightValue;
|
|
8
|
+
minWidth?: MinWidthValue;
|
|
9
|
+
maxWidth?: MaxWidthValue;
|
|
10
|
+
maxHeight?: MaxHeightValue;
|
|
11
|
+
gridArea?: GridAreaValue;
|
|
12
|
+
boxSizing?: BoxSizingValue;
|
|
13
|
+
padding?: PaddingValue;
|
|
14
|
+
marginLeft?: MarginValue;
|
|
15
|
+
marginTop?: MarginValue;
|
|
16
|
+
marginBottom?: MarginValue;
|
|
17
|
+
marginRight?: MarginValue;
|
|
18
|
+
justifySelf?: JustifySelfValue;
|
|
19
|
+
alignSelf?: AlignSelfValue;
|
|
20
|
+
}
|
|
21
|
+
export declare const getDefaultStyles: () => ImageStyleProperties;
|
|
22
|
+
export interface CMSImageInterface extends Omit<CMSElementInterface, "attributes"> {
|
|
23
|
+
attributes: {
|
|
24
|
+
HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
|
|
25
|
+
BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
|
|
26
|
+
CUSTOM: any;
|
|
27
|
+
};
|
|
28
|
+
styles: ImageStyleProperties;
|
|
29
|
+
childrenStyles?: CommonStyleProperties;
|
|
30
|
+
}
|