@sc-360-v2/storefront-cms-library 0.0.4 → 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.
Files changed (49) hide show
  1. package/README.md +7 -35
  2. package/dist/builder.js +1 -1
  3. package/dist/button.scss +139 -0
  4. package/dist/faq.scss +136 -0
  5. package/dist/functions.js +1 -0
  6. package/dist/htmlElement.js +1 -1
  7. package/dist/icons.js +1 -1
  8. package/dist/index.js +1 -1
  9. package/dist/tab-panel.scss +93 -0
  10. package/dist/text-editor.scss +8 -0
  11. package/dist/types/builder/elements/button/index.d.ts +26 -0
  12. package/dist/types/builder/elements/code/index.d.ts +59 -0
  13. package/dist/types/builder/elements/common.d.ts +6 -0
  14. package/dist/types/builder/elements/faq/index.d.ts +30 -0
  15. package/dist/types/builder/elements/gallery-slider/index.d.ts +30 -0
  16. package/dist/types/builder/elements/grid/index.d.ts +2 -0
  17. package/dist/types/builder/elements/image/index.d.ts +4 -1
  18. package/dist/types/builder/elements/section/index.d.ts +5 -0
  19. package/dist/types/builder/elements/social/index.d.ts +36 -0
  20. package/dist/types/builder/elements/tab/index.d.ts +30 -0
  21. package/dist/types/builder/elements/table/index.d.ts +30 -0
  22. package/dist/types/builder/elements/text-editor/index.d.ts +4 -3
  23. package/dist/types/builder/elements/video/index.d.ts +30 -0
  24. package/dist/types/builder/enums/cssVariables.d.ts +361 -0
  25. package/dist/types/builder/enums/index.d.ts +37 -3
  26. package/dist/types/builder/index.d.ts +11 -1
  27. package/dist/types/builder/interfaces/global.d.ts +48 -0
  28. package/dist/types/builder/tools/element-edit/button.d.ts +25 -0
  29. package/dist/types/builder/tools/element-edit/code.d.ts +15 -0
  30. package/dist/types/builder/tools/element-edit/common.d.ts +63 -0
  31. package/dist/types/builder/tools/element-edit/faq.d.ts +41 -0
  32. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +82 -0
  33. package/dist/types/builder/tools/element-edit/image.d.ts +26 -0
  34. package/dist/types/builder/tools/element-edit/index.d.ts +13 -0
  35. package/dist/types/builder/tools/element-edit/section.d.ts +15 -0
  36. package/dist/types/builder/tools/element-edit/slideShowLayouter.d.ts +21 -0
  37. package/dist/types/builder/tools/element-edit/social.d.ts +62 -0
  38. package/dist/types/builder/tools/element-edit/table.d.ts +200 -0
  39. package/dist/types/builder/tools/element-edit/tabs.d.ts +166 -0
  40. package/dist/types/builder/tools/element-edit/video.d.ts +73 -0
  41. package/dist/types/builder/utilities/global.d.ts +0 -2
  42. package/dist/types/global/attributes.d.ts +2 -2
  43. package/dist/types/global/style-properties.d.ts +3 -1
  44. package/dist/types/global/types.d.ts +6 -0
  45. package/dist/types/helper/helper-functions.d.ts +1 -0
  46. package/dist/types/html-elements/element-types.d.ts +11 -1
  47. package/dist/types/html-elements/elements.d.ts +3 -1
  48. package/dist/widget.scss +1 -0
  49. package/package.json +13 -1
@@ -0,0 +1,93 @@
1
+ // Define SCSS Variables
2
+ $tp-panel-margin: 80px auto;
3
+ $tp-panel-width: 1200px;
4
+ $tp-panel-height: 300px;
5
+ $tp-panel-border-width: 3px;
6
+ $tp-panel-border-color: #907fff;
7
+ $tp-tab-padding: 10px;
8
+ $tp-tab-min-width: 130px;
9
+ $tp-tab-min-height: 50px;
10
+ $tp-tab-bg-hover: #d3d3d3;
11
+ $tp-tab-bg-selected: #243dc6;
12
+ $tp-tab-border-radius: 6px 6px 0 0;
13
+ $tp-tab-color-selected: white;
14
+ $tp-content-bg: #f3f2f9;
15
+ $tp-divider-color: #400;
16
+ $tp-scrollbar-width: none;
17
+ $tp-scrollbar-style: none;
18
+
19
+ .tp-tab-panel {
20
+ margin: $tp-panel-margin;
21
+ width: $tp-panel-width;
22
+ height: $tp-panel-height;
23
+ border: $tp-panel-border-width solid $tp-panel-border-color;
24
+ display: flex;
25
+ flex-direction: column;
26
+
27
+ &--hr {
28
+ flex-direction: column;
29
+ }
30
+
31
+ &--vr {
32
+ flex-direction: row;
33
+ }
34
+
35
+ &__header {
36
+ background-color: #fff;
37
+ white-space: nowrap;
38
+ overflow-x: auto;
39
+ display: flex;
40
+ overflow-y: scroll;
41
+ scrollbar-width: $tp-scrollbar-width;
42
+ -ms-overflow-style: $tp-scrollbar-style;
43
+
44
+ &--hr {
45
+ flex-direction: row;
46
+ }
47
+
48
+ &--vr {
49
+ flex-direction: column;
50
+ }
51
+ }
52
+
53
+ &__tab {
54
+ flex: 0 0 auto;
55
+ text-align: center;
56
+ padding: $tp-tab-padding;
57
+ cursor: pointer;
58
+ transition: background-color 0.3s;
59
+ min-width: $tp-tab-min-width;
60
+ min-height: $tp-tab-min-height;
61
+ box-sizing: border-box;
62
+ align-content: center;
63
+
64
+ &:hover {
65
+ background-color: $tp-tab-bg-hover;
66
+ }
67
+
68
+ &--selected {
69
+ background-color: $tp-tab-bg-selected;
70
+ border-radius: $tp-tab-border-radius;
71
+ color: $tp-tab-color-selected;
72
+ }
73
+ }
74
+
75
+ &__content {
76
+ background-color: $tp-content-bg;
77
+ height: 100%;
78
+ width: 100%;
79
+ display: flex;
80
+ }
81
+
82
+ &__divider {
83
+ border: none;
84
+
85
+ &--hr {
86
+ border-top: $tp-panel-border-width solid $tp-divider-color;
87
+ }
88
+
89
+ &--vr {
90
+ border-left: $tp-panel-border-width solid $tp-divider-color;
91
+ }
92
+ }
93
+ }
@@ -318,3 +318,11 @@ $chip-remove-color: rgb(0, 54, 172);
318
318
  // border: 1px solid #eaecf0;
319
319
  border-radius: 8px !important;
320
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
+ }
@@ -1,3 +1,4 @@
1
+ import { ResponsiveBehaviourTypes } from "../../global/types";
1
2
  import { CMSHTMLAttributes } from "../../global/attributes";
2
3
  import { CommonStyleProperties } from "../../global/style-properties";
3
4
  export interface BuilderAttributes {
@@ -5,6 +6,8 @@ export interface BuilderAttributes {
5
6
  dataDivType?: string;
6
7
  dataElementType?: string;
7
8
  dataWidgetType?: string;
9
+ dataElementSubType?: string;
10
+ dataChildCount?: string | number;
8
11
  }
9
12
  export interface CMSElementAttributes {
10
13
  HTML?: CMSHTMLAttributes;
@@ -16,4 +19,7 @@ export interface CMSElementInterface {
16
19
  styles: CommonStyleProperties;
17
20
  attributes: CMSElementAttributes;
18
21
  uniqueKey: string | number;
22
+ responsiveBehaviour: ResponsiveBehaviourTypes;
23
+ builderData?: any;
24
+ controls?: any;
19
25
  }
@@ -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
+ }
@@ -41,6 +41,7 @@ export interface CMSGridInterface {
41
41
  responsiveBehaviour: ResponsiveBehaviourTypes;
42
42
  id?: string | number;
43
43
  styles: GridStyleProperties;
44
+ editedStyles?: CommonStyleProperties;
44
45
  children: any;
45
46
  attributes: {
46
47
  BUILDER?: Pick<BuilderAttributes, "dataDivType" | "dataType">;
@@ -54,6 +55,7 @@ export interface CMSGridInterface {
54
55
  gtccolorder?: number;
55
56
  gtrroworder?: number;
56
57
  type?: SizeTypeValue;
58
+ uniqueKey?: string;
57
59
  }
58
60
  export interface CMSGridsContainer {
59
61
  [key: string]: CMSGridInterface;
@@ -1,7 +1,8 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
1
2
  import { CMSHTMLAttributes } from "../../../global/attributes";
2
3
  import { AlignSelfValue, BoxSizingValue, GlobalImageAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
3
4
  import { BuilderAttributes, CMSElementInterface } from "../common";
4
- export interface ImageStyleProperties {
5
+ export interface ImageStyleProperties extends CommonStyleProperties {
5
6
  minHeight?: MinHeightValue;
6
7
  height?: HeightValue;
7
8
  minWidth?: MinWidthValue;
@@ -17,6 +18,7 @@ export interface ImageStyleProperties {
17
18
  justifySelf?: JustifySelfValue;
18
19
  alignSelf?: AlignSelfValue;
19
20
  }
21
+ export declare const getDefaultStyles: () => ImageStyleProperties;
20
22
  export interface CMSImageInterface extends Omit<CMSElementInterface, "attributes"> {
21
23
  attributes: {
22
24
  HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
@@ -24,4 +26,5 @@ export interface CMSImageInterface extends Omit<CMSElementInterface, "attributes
24
26
  CUSTOM: any;
25
27
  };
26
28
  styles: ImageStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
27
30
  }
@@ -27,6 +27,7 @@ export interface SectionStyleProperties extends CommonStyleProperties {
27
27
  gridTemplateColumns?: string;
28
28
  }
29
29
  export declare const getDefaultStyles: () => SectionStyleProperties;
30
+ export declare const getSectionDefaultStyles: () => SectionStyleProperties;
30
31
  export interface VariationConditionInterface {
31
32
  customer?: any[];
32
33
  user?: any[];
@@ -40,6 +41,8 @@ export interface SectionVariationInterface {
40
41
  CUSTOM?: any;
41
42
  };
42
43
  styles?: SectionStyleProperties;
44
+ editedStyles?: CommonStyleProperties;
45
+ sectionStyles?: CommonStyleProperties;
43
46
  grids?: CMSGridsContainer;
44
47
  responsiveBehaviour: ResponsiveBehaviourTypes;
45
48
  highestGrid?: number | any;
@@ -52,4 +55,6 @@ export interface CMSSectionInterface {
52
55
  variations?: {
53
56
  [key: string]: SectionVariationInterface;
54
57
  };
58
+ styles?: SectionStyleProperties;
59
+ sort?: number;
55
60
  }
@@ -0,0 +1,36 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, CommonBuilderAttributes } from "../../../global/types";
3
+ import { BuilderAttributes, CMSElementInterface } from "../common";
4
+ export interface SocialIconsStyleProperties {
5
+ minHeight?: MinHeightValue;
6
+ height?: HeightValue;
7
+ minWidth?: MinWidthValue;
8
+ maxWidth?: MaxWidthValue;
9
+ maxHeight?: MaxHeightValue;
10
+ boxSizing?: BoxSizingValue;
11
+ padding?: PaddingValue;
12
+ marginLeft?: MarginValue;
13
+ marginTop?: MarginValue;
14
+ marginBottom?: MarginValue;
15
+ marginRight?: MarginValue;
16
+ justifySelf?: JustifySelfValue;
17
+ alignSelf?: AlignSelfValue;
18
+ gridArea?: GridAreaValue;
19
+ }
20
+ export declare const getDefaultSocialIconsStyles: () => SocialIconsStyleProperties;
21
+ export interface CMSSocialIconsInterface extends Omit<CMSElementInterface, "attributes"> {
22
+ attributes: {
23
+ HTML: {
24
+ socialLinks: Array<{
25
+ platform: "Facebook" | "Instagram" | "Twitter" | "Amazon" | "Website" | "Linked In";
26
+ url: string;
27
+ icon: string;
28
+ name: string;
29
+ }>;
30
+ };
31
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
32
+ CUSTOM: any;
33
+ };
34
+ styles: SocialIconsStyleProperties;
35
+ childrenStyles?: CommonStyleProperties;
36
+ }
@@ -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 TabStyleProperties 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: () => TabStyleProperties;
22
+ export interface CMSTabInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalImageAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: TabStyleProperties;
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, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, GlobalTableAttributes, CommonBuilderAttributes } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface TableStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ boxSizing?: BoxSizingValue;
12
+ padding?: PaddingValue;
13
+ marginLeft?: MarginValue;
14
+ marginTop?: MarginValue;
15
+ marginBottom?: MarginValue;
16
+ marginRight?: MarginValue;
17
+ justifySelf?: JustifySelfValue;
18
+ alignSelf?: AlignSelfValue;
19
+ gridArea?: GridAreaValue;
20
+ }
21
+ export declare const getDefaultTableStyles: () => TableStyleProperties;
22
+ export interface CMSTableInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalTableAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: TableStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
30
+ }
@@ -1,5 +1,5 @@
1
1
  import { CMSHTMLAttributes } from "../../../global/attributes";
2
- import { AlignSelfValue, BoxSizingValue, GlobalTextAttributes, GridAreaValue, HeightValue, ImageBuilderAttributes, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
2
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue } from "../../../global/types";
3
3
  import { BuilderAttributes, CMSElementInterface } from "../common";
4
4
  export interface TextStyleProperties {
5
5
  minHeight?: MinHeightValue;
@@ -17,10 +17,11 @@ export interface TextStyleProperties {
17
17
  justifySelf?: JustifySelfValue;
18
18
  alignSelf?: AlignSelfValue;
19
19
  }
20
+ export declare const getDefaultStyles: () => TextStyleProperties;
20
21
  export interface CMSTextInterface extends Omit<CMSElementInterface, "attributes"> {
21
22
  attributes: {
22
- HTML: Pick<CMSHTMLAttributes, GlobalTextAttributes>;
23
- BUILDER: Pick<BuilderAttributes, ImageBuilderAttributes>;
23
+ HTML: CMSHTMLAttributes;
24
+ BUILDER: BuilderAttributes;
24
25
  CUSTOM: any;
25
26
  };
26
27
  styles: TextStyleProperties;
@@ -0,0 +1,30 @@
1
+ import { CommonStyleProperties } from "../../../global/style-properties";
2
+ import { CMSHTMLAttributes } from "../../../global/attributes";
3
+ import { AlignSelfValue, BoxSizingValue, GridAreaValue, HeightValue, JustifySelfValue, MarginValue, MaxHeightValue, MaxWidthValue, MinHeightValue, MinWidthValue, PaddingValue, CommonBuilderAttributes, GlobalVideoAttributes } from "../../../global/types";
4
+ import { BuilderAttributes, CMSElementInterface } from "../common";
5
+ export interface VideoStyleProperties {
6
+ minHeight?: MinHeightValue;
7
+ height?: HeightValue;
8
+ minWidth?: MinWidthValue;
9
+ maxWidth?: MaxWidthValue;
10
+ maxHeight?: MaxHeightValue;
11
+ boxSizing?: BoxSizingValue;
12
+ padding?: PaddingValue;
13
+ marginLeft?: MarginValue;
14
+ marginTop?: MarginValue;
15
+ marginBottom?: MarginValue;
16
+ marginRight?: MarginValue;
17
+ justifySelf?: JustifySelfValue;
18
+ alignSelf?: AlignSelfValue;
19
+ gridArea?: GridAreaValue;
20
+ }
21
+ export declare const getDefaultVideoStyles: () => VideoStyleProperties;
22
+ export interface CMSVideoInterface extends Omit<CMSElementInterface, "attributes"> {
23
+ attributes: {
24
+ HTML: Pick<CMSHTMLAttributes, GlobalVideoAttributes>;
25
+ BUILDER: Pick<BuilderAttributes, CommonBuilderAttributes>;
26
+ CUSTOM: any;
27
+ };
28
+ styles: VideoStyleProperties;
29
+ childrenStyles?: CommonStyleProperties;
30
+ }