@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.
Files changed (58) hide show
  1. package/README.md +7 -35
  2. package/dist/builder.js +2 -0
  3. package/dist/builder.js.LICENSE.txt +1 -0
  4. package/dist/button.scss +139 -0
  5. package/dist/css.js +1 -1
  6. package/dist/faq.scss +136 -0
  7. package/dist/functions.js +1 -0
  8. package/dist/htmlElement.js +1 -1
  9. package/dist/icons.js +1 -0
  10. package/dist/index.js +1 -1
  11. package/dist/tab-panel.scss +93 -0
  12. package/dist/text-editor.scss +328 -0
  13. package/dist/types/builder/elements/button/index.d.ts +26 -0
  14. package/dist/types/builder/elements/code/index.d.ts +59 -0
  15. package/dist/types/builder/elements/common.d.ts +25 -0
  16. package/dist/types/builder/elements/extra.d.ts +70 -0
  17. package/dist/types/builder/elements/faq/index.d.ts +30 -0
  18. package/dist/types/builder/elements/gallery-slider/index.d.ts +30 -0
  19. package/dist/types/builder/elements/grid/index.d.ts +63 -0
  20. package/dist/types/builder/elements/image/index.d.ts +30 -0
  21. package/dist/types/builder/elements/section/index.d.ts +60 -0
  22. package/dist/types/builder/elements/social/index.d.ts +36 -0
  23. package/dist/types/builder/elements/tab/index.d.ts +30 -0
  24. package/dist/types/builder/elements/table/index.d.ts +30 -0
  25. package/dist/types/builder/elements/text-editor/index.d.ts +29 -0
  26. package/dist/types/builder/elements/video/index.d.ts +30 -0
  27. package/dist/types/builder/enums/cssVariables.d.ts +361 -0
  28. package/dist/types/builder/enums/index.d.ts +78 -0
  29. package/dist/types/builder/index.d.ts +18 -0
  30. package/dist/types/builder/interfaces/cms-tools.d.ts +4 -0
  31. package/dist/types/builder/interfaces/global.d.ts +75 -0
  32. package/dist/types/builder/tools/element-edit/button.d.ts +25 -0
  33. package/dist/types/builder/tools/element-edit/code.d.ts +15 -0
  34. package/dist/types/builder/tools/element-edit/common.d.ts +63 -0
  35. package/dist/types/builder/tools/element-edit/faq.d.ts +41 -0
  36. package/dist/types/builder/tools/element-edit/gallery-slider.d.ts +82 -0
  37. package/dist/types/builder/tools/element-edit/image.d.ts +26 -0
  38. package/dist/types/builder/tools/element-edit/index.d.ts +13 -0
  39. package/dist/types/builder/tools/element-edit/section.d.ts +15 -0
  40. package/dist/types/builder/tools/element-edit/slideShowLayouter.d.ts +21 -0
  41. package/dist/types/builder/tools/element-edit/social.d.ts +62 -0
  42. package/dist/types/builder/tools/element-edit/table.d.ts +200 -0
  43. package/dist/types/builder/tools/element-edit/tabs.d.ts +166 -0
  44. package/dist/types/builder/tools/element-edit/video.d.ts +73 -0
  45. package/dist/types/builder/utilities/global.d.ts +4 -0
  46. package/dist/types/css/cssVariables.d.ts +7 -0
  47. package/dist/types/export.d.ts +3 -0
  48. package/dist/types/global/attributes.d.ts +125 -0
  49. package/dist/types/global/index.d.ts +0 -0
  50. package/dist/types/global/style-properties.d.ts +49 -0
  51. package/dist/types/global/types.d.ts +36 -0
  52. package/dist/types/helper/helper-functions.d.ts +1 -0
  53. package/dist/types/html-elements/element-types.d.ts +131 -0
  54. package/dist/types/html-elements/elements.d.ts +89 -0
  55. package/dist/types/icons/cms-svg-icons.d.ts +5 -0
  56. package/dist/types/icons/icons.d.ts +2 -0
  57. package/dist/widget.scss +1 -0
  58. package/package.json +104 -70
@@ -0,0 +1,166 @@
1
+ import { CMSElementEditTypes } from "../../enums";
2
+ import { CMSIBCommonInterface } from "../../interfaces/global";
3
+ import { CMSElementEditPopupInterface } from "./common";
4
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
5
+ }
6
+ export interface TabControlInterface {
7
+ tabPosition: CMSIBCommonInterface;
8
+ tabLayout: CMSIBCommonInterface;
9
+ tabAlignment: CMSIBCommonInterface;
10
+ tabSpacing: CMSIBCommonInterface;
11
+ tabContainer: CMSIBCommonInterface;
12
+ horizontalPadding: CMSIBCommonInterface;
13
+ verticalPadding: CMSIBCommonInterface;
14
+ overflowTabs: CMSIBCommonInterface;
15
+ spacingBetweenRows: CMSIBCommonInterface;
16
+ }
17
+ export declare const getDefaultData: () => {
18
+ layout: {
19
+ adjustment: CMSIBCommonInterface | undefined;
20
+ width: {
21
+ [key: string]: any;
22
+ } | undefined;
23
+ height: import("../../interfaces/global").CMSIBSizeInterface | undefined;
24
+ margin: import("../../interfaces/global").CSSPaddingValues | undefined;
25
+ padding: import("../../interfaces/global").CSSPaddingValues | undefined;
26
+ overflowContent: CMSIBCommonInterface | undefined;
27
+ scrollDirection: CMSIBCommonInterface | undefined;
28
+ displayScrollbar: CMSIBCommonInterface | undefined;
29
+ positionType: CMSIBCommonInterface | undefined;
30
+ pinTo: CMSIBCommonInterface | undefined;
31
+ tabPosition: {
32
+ value: string;
33
+ property: string;
34
+ propertyType: CMSElementEditTypes;
35
+ };
36
+ tabLayout: {
37
+ value: string;
38
+ property: string;
39
+ propertyType: CMSElementEditTypes;
40
+ };
41
+ tabAlignment: {
42
+ value: string;
43
+ property: string;
44
+ propertyType: CMSElementEditTypes;
45
+ };
46
+ tabSpacing: {
47
+ value: number;
48
+ property: string;
49
+ propertyType: CMSElementEditTypes;
50
+ };
51
+ tabContainer: {
52
+ value: number;
53
+ property: string;
54
+ propertyType: CMSElementEditTypes;
55
+ };
56
+ horizontalPadding: {
57
+ value: number;
58
+ property: string;
59
+ propertyType: CMSElementEditTypes;
60
+ };
61
+ verticalPadding: {
62
+ value: number;
63
+ property: string;
64
+ propertyType: CMSElementEditTypes;
65
+ };
66
+ overflowTabs: {
67
+ value: string;
68
+ property: string;
69
+ propertyType: CMSElementEditTypes;
70
+ };
71
+ spacingBetweenRows: {
72
+ value: number;
73
+ property: string;
74
+ propertyType: CMSElementEditTypes;
75
+ };
76
+ };
77
+ design: {
78
+ tabContainer: {
79
+ borderColor: CMSIBCommonInterface;
80
+ borderStyle: CMSIBCommonInterface;
81
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
82
+ showBorder: CMSIBCommonInterface;
83
+ backgroundColor: CMSIBCommonInterface;
84
+ showShadow: CMSIBCommonInterface;
85
+ shadowColor: CMSIBCommonInterface;
86
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
87
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
88
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
89
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
90
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
91
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
92
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
93
+ temperature: import("../../interfaces/global").CMSIBSizeInterface;
94
+ tint: import("../../interfaces/global").CMSIBSizeInterface;
95
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
96
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
97
+ };
98
+ tabs: {
99
+ borderColor: CMSIBCommonInterface;
100
+ borderStyle: CMSIBCommonInterface;
101
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
102
+ showBorder: CMSIBCommonInterface;
103
+ backgroundColor: CMSIBCommonInterface;
104
+ showShadow: CMSIBCommonInterface;
105
+ shadowColor: CMSIBCommonInterface;
106
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
107
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
108
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
109
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
110
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
111
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
112
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
113
+ temperature: import("../../interfaces/global").CMSIBSizeInterface;
114
+ tint: import("../../interfaces/global").CMSIBSizeInterface;
115
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
116
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
117
+ };
118
+ tabContentContainer: {
119
+ borderColor: CMSIBCommonInterface;
120
+ borderStyle: CMSIBCommonInterface;
121
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
122
+ showBorder: CMSIBCommonInterface;
123
+ backgroundColor: CMSIBCommonInterface;
124
+ showShadow: CMSIBCommonInterface;
125
+ shadowColor: CMSIBCommonInterface;
126
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
127
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
128
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
129
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
130
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
131
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
132
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
133
+ temperature: import("../../interfaces/global").CMSIBSizeInterface;
134
+ tint: import("../../interfaces/global").CMSIBSizeInterface;
135
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
136
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
137
+ };
138
+ arrows: {
139
+ borderColor: CMSIBCommonInterface;
140
+ borderStyle: CMSIBCommonInterface;
141
+ borderPerSlide: import("../../interfaces/global").CSSPaddingValues;
142
+ showBorder: CMSIBCommonInterface;
143
+ backgroundColor: CMSIBCommonInterface;
144
+ showShadow: CMSIBCommonInterface;
145
+ shadowColor: CMSIBCommonInterface;
146
+ blur: import("../../interfaces/global").CMSIBSizeInterface;
147
+ spread: import("../../interfaces/global").CMSIBSizeInterface;
148
+ angle: import("../../interfaces/global").CMSIBSizeInterface;
149
+ borderRadius: import("../../interfaces/global").CSSPaddingValues;
150
+ exposure: import("../../interfaces/global").CMSIBSizeInterface;
151
+ contrast: import("../../interfaces/global").CMSIBSizeInterface;
152
+ saturation: import("../../interfaces/global").CMSIBSizeInterface;
153
+ temperature: import("../../interfaces/global").CMSIBSizeInterface;
154
+ tint: import("../../interfaces/global").CMSIBSizeInterface;
155
+ highlights: import("../../interfaces/global").CMSIBSizeInterface;
156
+ shadows: import("../../interfaces/global").CMSIBSizeInterface;
157
+ };
158
+ };
159
+ content: {
160
+ tabContent: {
161
+ value: string[];
162
+ property: string;
163
+ propertyType: CMSElementEditTypes;
164
+ };
165
+ };
166
+ };
@@ -0,0 +1,73 @@
1
+ import { CMSIBCommonInterface } from "../../interfaces/global";
2
+ import { CMSElementEditPopupInterface, CMSElementEditPopupLayoutInterface } from "./common";
3
+ export interface SectionEditPopupInterface extends CMSElementEditPopupInterface {
4
+ }
5
+ interface ControlInterface {
6
+ value: string | boolean;
7
+ propertyType: string;
8
+ }
9
+ export interface VideoControlInterface {
10
+ selectorKey?: string;
11
+ autoplay?: CMSIBCommonInterface;
12
+ showControls?: ControlInterface;
13
+ positionType?: CMSIBCommonInterface;
14
+ loopVideo?: CMSIBCommonInterface;
15
+ loopCount?: CMSIBCommonInterface;
16
+ videoFile?: CMSIBCommonInterface;
17
+ pinTo?: CMSIBCommonInterface;
18
+ showVideoTitle?: CMSIBCommonInterface;
19
+ videoTitle?: CMSIBCommonInterface;
20
+ showVideoDescription?: CMSIBCommonInterface;
21
+ videoDescription?: CMSIBCommonInterface;
22
+ showCustomVideoThumbnail?: CMSIBCommonInterface;
23
+ thumbnailImage?: CMSIBCommonInterface;
24
+ videoPlayerText?: {
25
+ selectorKey?: string;
26
+ textPosition?: CMSIBCommonInterface;
27
+ textPositionOnTheImage?: CMSIBCommonInterface;
28
+ titleAndDescriptionAndAlignment?: CMSIBCommonInterface;
29
+ };
30
+ playPause?: {
31
+ selectorKey?: string;
32
+ icon?: CMSIBCommonInterface;
33
+ iconSize?: CMSIBCommonInterface;
34
+ iconColor?: CMSIBCommonInterface;
35
+ };
36
+ video?: {
37
+ selectorKey?: string;
38
+ backgroundColor?: CMSIBCommonInterface;
39
+ borderColor?: CMSIBCommonInterface;
40
+ borderStyle?: CMSIBCommonInterface;
41
+ borderPerSlide?: CMSIBCommonInterface;
42
+ showBorder?: CMSIBCommonInterface;
43
+ showShadow?: CMSIBCommonInterface;
44
+ shadowColor?: CMSIBCommonInterface;
45
+ blur?: CMSIBCommonInterface;
46
+ spread?: CMSIBCommonInterface;
47
+ angle?: CMSIBCommonInterface;
48
+ borderRadius?: CMSIBCommonInterface;
49
+ };
50
+ }
51
+ export interface CMSVideoEditPopupInterface<L = VideoControlInterface, C = VideoControlInterface, D = VideoControlInterface> {
52
+ layout?: L;
53
+ content?: C;
54
+ design?: D;
55
+ }
56
+ export declare enum VideoSelectorKeysEnum {
57
+ LAYOUT = "layout",
58
+ DESIGN = "design",
59
+ CONTENT = "content",
60
+ VIDEO_PLAYER_TEXT = "videoPlayerText",
61
+ PLAY_PAUSE = "playPause",
62
+ VIDEO = "video"
63
+ }
64
+ export interface SelectorKeys {
65
+ LAYOUT: string;
66
+ DESIGN: string;
67
+ CONTENT: string;
68
+ VIDEO_PLAYER_TEXT: string;
69
+ PLAY_PAUSE: string;
70
+ VIDEO: string;
71
+ }
72
+ export declare const getDefaultData: () => CMSVideoEditPopupInterface<VideoControlInterface & VideoControlInterface & VideoControlInterface & CMSElementEditPopupLayoutInterface>;
73
+ export {};
@@ -0,0 +1,4 @@
1
+ import { CSSUnitOption } from "../interfaces/global";
2
+ export declare const CSSUnits: CSSUnitOption[];
3
+ declare const commonFunctions: any;
4
+ export default commonFunctions;
@@ -0,0 +1,7 @@
1
+ export declare function convertCamelCaseToCssProperties(inputString: string): string;
2
+ export declare function getCSSVariable(cssProperty: string): string;
3
+ declare const cssFunctions: {
4
+ getCSSVariable: typeof getCSSVariable;
5
+ convertCamelCaseToCssProperties: typeof convertCamelCaseToCssProperties;
6
+ };
7
+ export default cssFunctions;
@@ -0,0 +1,3 @@
1
+ export { default as HTMLElements } from "./html-elements/elements";
2
+ export { default as cssFunctions } from "./css/cssVariables";
3
+ export { default as CMSSvgIcons } from "./icons/cms-svg-icons";
@@ -0,0 +1,125 @@
1
+ /// <reference types="react" />
2
+ export interface CMSHTMLAttributes {
3
+ accept?: string;
4
+ acceptCharset?: string;
5
+ accessKey?: string;
6
+ action?: string;
7
+ allowFullScreen?: boolean;
8
+ allowTransparency?: boolean;
9
+ alt?: string;
10
+ async?: boolean;
11
+ autoComplete?: string;
12
+ autoFocus?: boolean;
13
+ autoPlay?: boolean;
14
+ capture?: boolean | string;
15
+ cellPadding?: number | string;
16
+ cellSpacing?: number | string;
17
+ charSet?: string;
18
+ challenge?: string;
19
+ checked?: boolean;
20
+ cite?: string;
21
+ classID?: string;
22
+ className?: string;
23
+ cols?: number;
24
+ colSpan?: number;
25
+ content?: string;
26
+ contentEditable?: boolean;
27
+ contextMenu?: string;
28
+ controls?: boolean;
29
+ coords?: string;
30
+ crossOrigin?: string;
31
+ data?: string;
32
+ dateTime?: string;
33
+ default?: boolean;
34
+ defer?: boolean;
35
+ dir?: string;
36
+ disabled?: boolean;
37
+ download?: any;
38
+ draggable?: boolean;
39
+ encType?: string;
40
+ form?: string;
41
+ formAction?: string;
42
+ formEncType?: string;
43
+ formMethod?: string;
44
+ formNoValidate?: boolean;
45
+ formTarget?: string;
46
+ frameBorder?: number | string;
47
+ headers?: any;
48
+ height?: number | string;
49
+ hidden?: boolean;
50
+ high?: number;
51
+ href?: string;
52
+ hrefLang?: string;
53
+ htmlFor?: string;
54
+ httpEquiv?: string;
55
+ icon?: string;
56
+ id?: string;
57
+ inputMode?: string;
58
+ integrity?: string;
59
+ is?: string;
60
+ keyParams?: string;
61
+ keyType?: string;
62
+ kind?: string;
63
+ label?: string;
64
+ lang?: string;
65
+ list?: string;
66
+ loop?: boolean;
67
+ low?: number;
68
+ manifest?: string;
69
+ marginHeight?: number;
70
+ marginWidth?: number;
71
+ max?: number | string;
72
+ maxLength?: number;
73
+ media?: string;
74
+ mediaGroup?: string;
75
+ method?: string;
76
+ min?: number | string;
77
+ minLength?: number;
78
+ multiple?: boolean;
79
+ muted?: boolean;
80
+ name?: string;
81
+ nonce?: string;
82
+ noValidate?: boolean;
83
+ open?: boolean;
84
+ optimum?: number;
85
+ pattern?: string;
86
+ placeholder?: string;
87
+ playsInline?: boolean;
88
+ poster?: string;
89
+ preload?: string;
90
+ readOnly?: boolean;
91
+ rel?: string;
92
+ required?: boolean;
93
+ reversed?: boolean;
94
+ rows?: any;
95
+ rowSpan?: number;
96
+ sandbox?: string;
97
+ scope?: string;
98
+ scoped?: boolean;
99
+ scrolling?: string;
100
+ seamless?: boolean;
101
+ selected?: boolean;
102
+ shape?: string;
103
+ size?: number;
104
+ sizes?: string;
105
+ span?: number;
106
+ spellCheck?: boolean;
107
+ src?: string;
108
+ srcDoc?: string;
109
+ srcLang?: string;
110
+ srcSet?: string;
111
+ start?: number;
112
+ step?: number | string;
113
+ style?: React.CSSProperties;
114
+ summary?: string;
115
+ tabIndex?: number;
116
+ target?: string;
117
+ title?: string;
118
+ type?: string;
119
+ useMap?: string;
120
+ value?: string | string[] | number;
121
+ width?: number | string;
122
+ wmode?: string;
123
+ wrap?: string;
124
+ [key: string]: any;
125
+ }
File without changes
@@ -0,0 +1,49 @@
1
+ import { AlignItemsValue, AlignSelfValue, BackgroundRepeatValue, BackgroundSizeValue, CursorValue, DisplayValue, FlexDirectionValue, FlexWrapValue, FontWeightValue, JustifyContentValue, JustifySelfValue, MarginValue, ObjectFitValue, ObjectPositionValue, OverflowValue, PositionValue, TextAlignValue, VisibilityValue } from "./types";
2
+ export interface CommonStyleProperties {
3
+ color?: string;
4
+ fontSize?: string;
5
+ fontWeight?: FontWeightValue;
6
+ lineHeight?: string | number;
7
+ fontFamily?: string;
8
+ textAlign?: TextAlignValue;
9
+ textDecoration?: string;
10
+ letterSpacing?: string;
11
+ backgroundColor?: string;
12
+ backgroundImage?: string;
13
+ backgroundSize?: BackgroundSizeValue;
14
+ backgroundRepeat?: BackgroundRepeatValue;
15
+ backgroundPosition?: string;
16
+ display?: DisplayValue;
17
+ width?: string | number;
18
+ height?: string | number;
19
+ margin?: string | number;
20
+ padding?: string | number;
21
+ border?: string;
22
+ borderRadius?: string | number;
23
+ overflow?: OverflowValue;
24
+ marginLeft?: MarginValue;
25
+ marginTop?: MarginValue;
26
+ marginBottom?: MarginValue;
27
+ marginRight?: MarginValue;
28
+ flexDirection?: FlexDirectionValue;
29
+ justifyContent?: JustifyContentValue;
30
+ alignItems?: AlignItemsValue;
31
+ flexWrap?: FlexWrapValue;
32
+ flex?: string | number;
33
+ justifySelf?: JustifySelfValue;
34
+ alignSelf?: AlignSelfValue;
35
+ position?: PositionValue;
36
+ top?: string | number;
37
+ right?: string | number;
38
+ bottom?: string | number;
39
+ left?: string | number;
40
+ zIndex?: number;
41
+ opacity?: number;
42
+ boxShadow?: string;
43
+ cursor?: CursorValue;
44
+ transition?: string;
45
+ transform?: string;
46
+ visibility?: VisibilityValue;
47
+ objectFit?: ObjectFitValue;
48
+ objectPosition?: ObjectPositionValue;
49
+ }
@@ -0,0 +1,36 @@
1
+ export type AlignItemsValue = "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end" | string;
2
+ export type AlignSelfValue = "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end" | string;
3
+ export type BackgroundRepeatValue = "repeat" | "repeat-x" | "repeat-y" | "no-repeat" | "space" | "round" | string;
4
+ export type BackgroundSizeValue = "auto" | "cover" | "contain" | string;
5
+ export type CursorValue = "auto" | "default" | "none" | "pointer" | "wait" | "text" | "move" | "help" | "progress" | "not-allowed" | "context-menu" | "cell" | "crosshair" | "alias" | "copy" | "grab" | "grabbing" | string;
6
+ export type DisplayValue = "block" | "inline" | "inline-block" | "flex" | "grid" | "none" | "list-item" | "run-in" | "table" | "table-caption" | "table-cell" | "table-column" | "table-column-group" | "table-footer-group" | "table-header-group" | "table-row" | "table-row-group" | string;
7
+ export type FlexDirectionValue = "row" | "row-reverse" | "column" | "column-reverse" | string;
8
+ export type FlexWrapValue = "nowrap" | "wrap" | "wrap-reverse" | string;
9
+ export type FontWeightValue = "normal" | "bold" | "bolder" | "lighter" | string;
10
+ export type JustifyContentValue = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "left" | "right" | string;
11
+ export type JustifySelfValue = "auto" | "start" | "end" | "center" | "stretch" | "baseline" | string;
12
+ export type MarginValue = string | string;
13
+ export type OverflowValue = "visible" | "hidden" | "scroll" | "auto" | string;
14
+ export type PositionValue = "static" | "relative" | "absolute" | "fixed" | "sticky" | string;
15
+ export type TextAlignValue = "left" | "right" | "center" | "justify" | "start" | "end" | string;
16
+ export type VisibilityValue = "visible" | "hidden" | "collapse" | string;
17
+ export type MinHeightValue = string | number;
18
+ export type MinWidthValue = string | number;
19
+ export type HeightValue = string | number;
20
+ export type WidthValue = string | number;
21
+ export type MaxHeightValue = string | number;
22
+ export type MaxWidthValue = string | number;
23
+ export type GridAreaValue = string;
24
+ export type BoxSizingValue = "border-box" | "content-box" | string;
25
+ export type PaddingValue = string | number;
26
+ export type ResponsiveBehaviourTypes = "proportional-scaling" | "fixed-height" | "fit-to-screen" | string | number;
27
+ export type SizeTypeValue = "inline" | "block" | string;
28
+ export type GlobalImageAttributes = "src" | "alt" | "width" | "height" | "loading" | "crossOrigin" | "referrerPolicy";
29
+ export type GlobalTextAttributes = "lang" | "dir" | "title" | "aria-label" | "aria-hidden" | "aria-live" | "tabIndex" | "role";
30
+ export type ImageBuilderAttributes = "dataDivType" | "dataType" | "dataElementType" | "dataWidgetType";
31
+ export type CMSEditControlsTypes = "Slider" | "Settings" | string;
32
+ export type GlobalVideoAttributes = "src" | "poster" | "controls" | "autoplay" | "loop" | "muted" | "preload" | "crossOrigin" | "playsInline";
33
+ export type CommonBuilderAttributes = "dataDivType" | "dataType" | "dataElementType" | "dataWidgetType";
34
+ export type GlobalTableAttributes = "cellPadding" | "cellSpacing" | "border" | "width" | "height" | "align" | "bgColor" | "frame" | "headers" | "rows" | "rules";
35
+ export type ObjectFitValue = "fill" | "contain" | "cover" | "none" | "scale-down" | string;
36
+ export type ObjectPositionValue = string;
@@ -0,0 +1 @@
1
+ export declare const dateTimeFormat: (dateString: string | number, isTime?: boolean, formatStr?: string, timeZone?: string, locale?: string) => string | null;
@@ -0,0 +1,131 @@
1
+ import { DetailedHTMLProps, HTMLAttributes, ReactNode, InputHTMLAttributes, TextareaHTMLAttributes, ButtonHTMLAttributes, SelectHTMLAttributes, OptionHTMLAttributes, ImgHTMLAttributes, VideoHTMLAttributes } from "react";
2
+ export interface H1Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
3
+ children?: ReactNode;
4
+ }
5
+ export interface H2Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
6
+ children?: ReactNode;
7
+ }
8
+ export interface H3Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
9
+ children?: ReactNode;
10
+ }
11
+ export interface H4Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
12
+ children?: ReactNode;
13
+ }
14
+ export interface H5Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
15
+ children?: ReactNode;
16
+ }
17
+ export interface H6Props extends DetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement> {
18
+ children?: ReactNode;
19
+ }
20
+ export interface PProps extends DetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement> {
21
+ children?: ReactNode;
22
+ }
23
+ export interface SpanProps extends DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement> {
24
+ children?: ReactNode;
25
+ }
26
+ export interface AProps extends DetailedHTMLProps<HTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
27
+ children?: ReactNode;
28
+ }
29
+ export interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
30
+ children?: ReactNode;
31
+ }
32
+ export interface InputProps extends DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> {
33
+ }
34
+ export interface TextareaProps extends DetailedHTMLProps<TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> {
35
+ }
36
+ export interface SelectProps extends DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement> {
37
+ children?: ReactNode;
38
+ }
39
+ export interface OptionProps extends DetailedHTMLProps<OptionHTMLAttributes<HTMLOptionElement>, HTMLOptionElement> {
40
+ }
41
+ export interface TableProps extends DetailedHTMLProps<HTMLAttributes<HTMLTableElement>, HTMLTableElement> {
42
+ children?: ReactNode;
43
+ }
44
+ export interface TableRowProps extends DetailedHTMLProps<HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement> {
45
+ children?: ReactNode;
46
+ }
47
+ export interface TableHeaderCellProps extends DetailedHTMLProps<HTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement> {
48
+ children?: ReactNode;
49
+ }
50
+ export interface TableCellProps extends DetailedHTMLProps<HTMLAttributes<HTMLTableCellElement>, HTMLTableCellElement> {
51
+ children?: ReactNode;
52
+ }
53
+ export interface FormProps extends DetailedHTMLProps<HTMLAttributes<HTMLFormElement>, HTMLFormElement> {
54
+ children?: ReactNode;
55
+ }
56
+ export interface LabelProps extends DetailedHTMLProps<HTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
57
+ children?: ReactNode;
58
+ }
59
+ export interface DetailsProps extends DetailedHTMLProps<HTMLAttributes<HTMLDetailsElement>, HTMLDetailsElement> {
60
+ children?: ReactNode;
61
+ }
62
+ export interface SummaryProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
63
+ children?: ReactNode;
64
+ }
65
+ export interface DialogProps extends DetailedHTMLProps<HTMLAttributes<HTMLDialogElement>, HTMLDialogElement> {
66
+ children?: ReactNode;
67
+ }
68
+ export interface MainProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
69
+ children?: ReactNode;
70
+ }
71
+ export interface SectionProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
72
+ children?: ReactNode;
73
+ }
74
+ export interface ArticleProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
75
+ children?: ReactNode;
76
+ }
77
+ export interface AsideProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
78
+ children?: ReactNode;
79
+ }
80
+ export interface HeaderProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
81
+ children?: ReactNode;
82
+ }
83
+ export interface FooterProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
84
+ children?: ReactNode;
85
+ }
86
+ export interface NavProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
87
+ children?: ReactNode;
88
+ }
89
+ export interface AddressProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
90
+ children?: ReactNode;
91
+ }
92
+ export interface CodeProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
93
+ children?: ReactNode;
94
+ }
95
+ export interface PreProps extends DetailedHTMLProps<HTMLAttributes<HTMLPreElement>, HTMLPreElement> {
96
+ children?: ReactNode;
97
+ }
98
+ export interface KbdProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
99
+ children?: ReactNode;
100
+ }
101
+ export interface SmallProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
102
+ children?: ReactNode;
103
+ }
104
+ export interface StrongProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
105
+ children?: ReactNode;
106
+ }
107
+ export interface BProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
108
+ children?: ReactNode;
109
+ }
110
+ export interface IProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
111
+ children?: ReactNode;
112
+ }
113
+ export interface UProps extends DetailedHTMLProps<HTMLAttributes<HTMLElement>, HTMLElement> {
114
+ children?: ReactNode;
115
+ }
116
+ export interface DivProps extends DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
117
+ children?: ReactNode;
118
+ }
119
+ export interface ImgProps extends DetailedHTMLProps<ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
120
+ alt?: string;
121
+ }
122
+ export interface VideoProps extends VideoHTMLAttributes<HTMLVideoElement> {
123
+ children?: ReactNode;
124
+ tracks?: Array<{
125
+ kind: string;
126
+ srcLang: string;
127
+ src: string;
128
+ label?: string;
129
+ default?: boolean;
130
+ }>;
131
+ }