@levo-so/studio 0.1.0
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/blockSmith/ContentSchemaGenerator.d.ts +4 -0
- package/dist/blockSmith/DefaultContentGenerator.d.ts +2 -0
- package/dist/blockSmith/DefaultStylesGenerator.d.ts +2 -0
- package/dist/blockSmith/index.d.ts +3 -0
- package/dist/blockSmith/variablePropertMap.d.ts +2 -0
- package/dist/bridge/Highlighter.d.ts +8 -0
- package/dist/bridge/PreviewHighlighter.d.ts +2 -0
- package/dist/bridge/StudioBlockPreview.d.ts +7 -0
- package/dist/bridge/StudioPagePreview.d.ts +16 -0
- package/dist/bridge/StudioPreview.d.ts +20 -0
- package/dist/bridge/constants.d.ts +7 -0
- package/dist/bridge/index.d.ts +5 -0
- package/dist/bridge/types.d.ts +33 -0
- package/dist/bridge/utils.d.ts +7 -0
- package/dist/components/ActionWrapper.d.ts +8 -0
- package/dist/components/BackgroundVideo.d.ts +6 -0
- package/dist/components/backgroundPresets/Beams.d.ts +10 -0
- package/dist/components/backgroundPresets/Dots.d.ts +12 -0
- package/dist/components/backgroundPresets/Gradient.d.ts +10 -0
- package/dist/components/backgroundPresets/Grid.d.ts +14 -0
- package/dist/components/backgroundPresets/Waves.d.ts +12 -0
- package/dist/components/backgroundPresets/exports.d.ts +10 -0
- package/dist/components/backgroundPresets/index.d.ts +9 -0
- package/dist/components/backgroundPresets/presetSystem.d.ts +10 -0
- package/dist/components/backgroundPresets/presetUtils.d.ts +19 -0
- package/dist/components/backgroundPresets/presets.d.ts +39 -0
- package/dist/components/withBlockProps copy.d.ts +61 -0
- package/dist/components/withBlockProps.d.ts +61 -0
- package/dist/contentEngine/cache.d.ts +5 -0
- package/dist/contentEngine/config.d.ts +3 -0
- package/dist/contentEngine/content.d.ts +21 -0
- package/dist/contentEngine/getPage.d.ts +8 -0
- package/dist/contentEngine/head_code.d.ts +3 -0
- package/dist/contentEngine/index.d.ts +7 -0
- package/dist/contentEngine/sourceFetcher.d.ts +12 -0
- package/dist/contentEngine/themeUtils.d.ts +81 -0
- package/dist/contentEngine/types.d.ts +25 -0
- package/dist/contentEngine/urlBuilder.d.ts +3 -0
- package/dist/contentEngine/useContentEngine.d.ts +9 -0
- package/dist/core/BlockRegistry.d.ts +20 -0
- package/dist/core/LevoBlock.d.ts +15 -0
- package/dist/core/LevoPage.d.ts +12 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/elements/Box.d.ts +7 -0
- package/dist/elements/Button.d.ts +10 -0
- package/dist/elements/Carousel.d.ts +19 -0
- package/dist/elements/Container.d.ts +6 -0
- package/dist/elements/Form.d.ts +6 -0
- package/dist/elements/Heading.d.ts +7 -0
- package/dist/elements/Icon.d.ts +10 -0
- package/dist/elements/Iframe.d.ts +7 -0
- package/dist/elements/Image.d.ts +17 -0
- package/dist/elements/Link.d.ts +6 -0
- package/dist/elements/Media.d.ts +22 -0
- package/dist/elements/Section.d.ts +7 -0
- package/dist/elements/Typography.d.ts +8 -0
- package/dist/elements/accordion/index.d.ts +20 -0
- package/dist/elements/index.d.ts +16 -0
- package/dist/elements/popover/index.d.ts +17 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +10762 -0
- package/dist/interfaces/block.d.ts +50 -0
- package/dist/interfaces/contentSchema.d.ts +29 -0
- package/dist/interfaces/index.d.ts +7 -0
- package/dist/interfaces/levoBlock.d.ts +203 -0
- package/dist/interfaces/site.d.ts +179 -0
- package/dist/interfaces/sites.d.ts +32 -0
- package/dist/interfaces/theme.d.ts +144 -0
- package/dist/pixel/constants/borderRadius.d.ts +43 -0
- package/dist/pixel/constants/colorOptions.d.ts +73 -0
- package/dist/pixel/constants/fontSizeOptions.d.ts +58 -0
- package/dist/pixel/constants/marginOptions.d.ts +183 -0
- package/dist/pixel/constants/spaceOptions.d.ts +178 -0
- package/dist/pixel/index.d.ts +3 -0
- package/dist/pixel/optionsMap.d.ts +14 -0
- package/dist/pixel/propertyMap.d.ts +2 -0
- package/dist/providers/AuthProvider.d.ts +25 -0
- package/dist/providers/BlockContext.d.ts +16 -0
- package/dist/providers/index.d.ts +3 -0
- package/dist/theme/defaultTheme.d.ts +3 -0
- package/dist/utils/blockHelpers.d.ts +5 -0
- package/dist/utils/blocksLevoClient.d.ts +5 -0
- package/dist/utils/colorUtils.d.ts +54 -0
- package/dist/utils/getKeysWithValue.d.ts +3 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/withBlockPropsUtils.d.ts +132 -0
- package/package.json +72 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export declare const colorOptions: {
|
|
2
|
+
readonly black: {
|
|
3
|
+
readonly label: "Black";
|
|
4
|
+
readonly value: "black";
|
|
5
|
+
readonly css: "#000000";
|
|
6
|
+
};
|
|
7
|
+
readonly white: {
|
|
8
|
+
readonly label: "White";
|
|
9
|
+
readonly value: "white";
|
|
10
|
+
readonly css: "#FFFFFF";
|
|
11
|
+
};
|
|
12
|
+
readonly "text-1": {
|
|
13
|
+
readonly label: "Text 1";
|
|
14
|
+
readonly value: "text-1";
|
|
15
|
+
readonly css: "var(--color-text-1)";
|
|
16
|
+
};
|
|
17
|
+
readonly "text-2": {
|
|
18
|
+
readonly label: "Text 2";
|
|
19
|
+
readonly value: "text-2";
|
|
20
|
+
readonly css: "var(--color-text-2)";
|
|
21
|
+
};
|
|
22
|
+
readonly "text-3": {
|
|
23
|
+
readonly label: "Text 3";
|
|
24
|
+
readonly value: "text-3";
|
|
25
|
+
readonly css: "var(--color-text-3)";
|
|
26
|
+
};
|
|
27
|
+
readonly brand: {
|
|
28
|
+
readonly label: "Brand";
|
|
29
|
+
readonly value: "brand";
|
|
30
|
+
readonly css: "var(--color-brand)";
|
|
31
|
+
};
|
|
32
|
+
readonly brandForeground: {
|
|
33
|
+
readonly label: "Brand Foreground";
|
|
34
|
+
readonly value: "brandForeground";
|
|
35
|
+
readonly css: "var(--color-brand-foreground)";
|
|
36
|
+
};
|
|
37
|
+
readonly brandSecondary: {
|
|
38
|
+
readonly label: "Brand Secondary";
|
|
39
|
+
readonly value: "brandSecondary";
|
|
40
|
+
readonly css: "var(--color-brand-secondary)";
|
|
41
|
+
};
|
|
42
|
+
readonly brandSecondaryForeground: {
|
|
43
|
+
readonly label: "Brand Secondary Foreground";
|
|
44
|
+
readonly value: "brandSecondaryForeground";
|
|
45
|
+
readonly css: "var(--color-brand-secondary-foreground)";
|
|
46
|
+
};
|
|
47
|
+
readonly "background-1": {
|
|
48
|
+
readonly label: "Background 1";
|
|
49
|
+
readonly value: "background-1";
|
|
50
|
+
readonly css: "var(--color-background-1)";
|
|
51
|
+
};
|
|
52
|
+
readonly "background-2": {
|
|
53
|
+
readonly label: "Background 2";
|
|
54
|
+
readonly value: "background-2";
|
|
55
|
+
readonly css: "var(--color-background-2)";
|
|
56
|
+
};
|
|
57
|
+
readonly "background-3": {
|
|
58
|
+
readonly label: "Background 3";
|
|
59
|
+
readonly value: "background-3";
|
|
60
|
+
readonly css: "var(--color-background-3)";
|
|
61
|
+
};
|
|
62
|
+
readonly "icon-primary": {
|
|
63
|
+
readonly label: "Icon Primary";
|
|
64
|
+
readonly value: "icon-primary";
|
|
65
|
+
readonly css: "var(--color-icon-primary)";
|
|
66
|
+
};
|
|
67
|
+
readonly "icon-secondary": {
|
|
68
|
+
readonly label: "Icon Secondary";
|
|
69
|
+
readonly value: "icon-secondary";
|
|
70
|
+
readonly css: "var(--color-icon-secondary)";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
//# sourceMappingURL=colorOptions.d.ts.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare const fontSizeOptions: {
|
|
2
|
+
readonly xs: {
|
|
3
|
+
readonly label: "XS";
|
|
4
|
+
readonly value: "xs";
|
|
5
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 0.75)";
|
|
6
|
+
};
|
|
7
|
+
readonly sm: {
|
|
8
|
+
readonly label: "SM";
|
|
9
|
+
readonly value: "sm";
|
|
10
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 0.875)";
|
|
11
|
+
};
|
|
12
|
+
readonly base: {
|
|
13
|
+
readonly label: "Base";
|
|
14
|
+
readonly value: "base";
|
|
15
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 1)";
|
|
16
|
+
};
|
|
17
|
+
readonly lg: {
|
|
18
|
+
readonly label: "LG";
|
|
19
|
+
readonly value: "lg";
|
|
20
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 1.125)";
|
|
21
|
+
};
|
|
22
|
+
readonly xl: {
|
|
23
|
+
readonly label: "XL";
|
|
24
|
+
readonly value: "xl";
|
|
25
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 1.25)";
|
|
26
|
+
};
|
|
27
|
+
readonly "2xl": {
|
|
28
|
+
readonly label: "2 XL";
|
|
29
|
+
readonly value: "2xl";
|
|
30
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 1.5)";
|
|
31
|
+
};
|
|
32
|
+
readonly "3xl": {
|
|
33
|
+
readonly label: "3 XL";
|
|
34
|
+
readonly value: "3xl";
|
|
35
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 1.875)";
|
|
36
|
+
};
|
|
37
|
+
readonly "4xl": {
|
|
38
|
+
readonly label: "4 XL";
|
|
39
|
+
readonly value: "4xl";
|
|
40
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 2.25)";
|
|
41
|
+
};
|
|
42
|
+
readonly "5xl": {
|
|
43
|
+
readonly label: "5 XL";
|
|
44
|
+
readonly value: "5xl";
|
|
45
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 3)";
|
|
46
|
+
};
|
|
47
|
+
readonly "6xl": {
|
|
48
|
+
readonly label: "6 XL";
|
|
49
|
+
readonly value: "6xl";
|
|
50
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 3.75)";
|
|
51
|
+
};
|
|
52
|
+
readonly "7xl": {
|
|
53
|
+
readonly label: "7 XL";
|
|
54
|
+
readonly value: "7xl";
|
|
55
|
+
readonly css: "calc(var(--base-font-size, 1rem) * 4.5)";
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=fontSizeOptions.d.ts.map
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
export declare const marginOptions: {
|
|
2
|
+
none: {
|
|
3
|
+
readonly label: "None";
|
|
4
|
+
readonly value: "none";
|
|
5
|
+
readonly css: "0px";
|
|
6
|
+
};
|
|
7
|
+
"6xs": {
|
|
8
|
+
readonly label: "6 XS";
|
|
9
|
+
readonly value: "6xs";
|
|
10
|
+
readonly css: "calc(var(--base-spacing, 4px) * 0.25)";
|
|
11
|
+
};
|
|
12
|
+
"5xs": {
|
|
13
|
+
readonly label: "5 XS";
|
|
14
|
+
readonly value: "5xs";
|
|
15
|
+
readonly css: "calc(var(--base-spacing, 4px) * 0.5)";
|
|
16
|
+
};
|
|
17
|
+
"4xs": {
|
|
18
|
+
readonly label: "4 XS";
|
|
19
|
+
readonly value: "4xs";
|
|
20
|
+
readonly css: "calc(var(--base-spacing, 4px) * 1)";
|
|
21
|
+
};
|
|
22
|
+
"3xs": {
|
|
23
|
+
readonly label: "3 XS";
|
|
24
|
+
readonly value: "3xs";
|
|
25
|
+
readonly css: "calc(var(--base-spacing, 4px) * 1.5)";
|
|
26
|
+
};
|
|
27
|
+
"2xs": {
|
|
28
|
+
readonly label: "2 XS";
|
|
29
|
+
readonly value: "2xs";
|
|
30
|
+
readonly css: "calc(var(--base-spacing, 4px) * 2)";
|
|
31
|
+
};
|
|
32
|
+
xs: {
|
|
33
|
+
readonly label: "XS";
|
|
34
|
+
readonly value: "xs";
|
|
35
|
+
readonly css: "calc(var(--base-spacing, 4px) * 2.5)";
|
|
36
|
+
};
|
|
37
|
+
sm: {
|
|
38
|
+
readonly label: "SM";
|
|
39
|
+
readonly value: "sm";
|
|
40
|
+
readonly css: "calc(var(--base-spacing, 4px) * 3)";
|
|
41
|
+
};
|
|
42
|
+
md: {
|
|
43
|
+
readonly label: "MD";
|
|
44
|
+
readonly value: "md";
|
|
45
|
+
readonly css: "calc(var(--base-spacing, 4px) * 3.5)";
|
|
46
|
+
};
|
|
47
|
+
base: {
|
|
48
|
+
readonly label: "Base";
|
|
49
|
+
readonly value: "base";
|
|
50
|
+
readonly css: "calc(var(--base-spacing, 4px) * 4)";
|
|
51
|
+
};
|
|
52
|
+
lg: {
|
|
53
|
+
readonly label: "LG";
|
|
54
|
+
readonly value: "lg";
|
|
55
|
+
readonly css: "calc(var(--base-spacing, 4px) * 5)";
|
|
56
|
+
};
|
|
57
|
+
xl: {
|
|
58
|
+
readonly label: "XL";
|
|
59
|
+
readonly value: "xl";
|
|
60
|
+
readonly css: "calc(var(--base-spacing, 4px) * 6)";
|
|
61
|
+
};
|
|
62
|
+
"2xl": {
|
|
63
|
+
readonly label: "2 XL";
|
|
64
|
+
readonly value: "2xl";
|
|
65
|
+
readonly css: "calc(var(--base-spacing, 4px) * 7)";
|
|
66
|
+
};
|
|
67
|
+
"3xl": {
|
|
68
|
+
readonly label: "3 XL";
|
|
69
|
+
readonly value: "3xl";
|
|
70
|
+
readonly css: "calc(var(--base-spacing, 4px) * 8)";
|
|
71
|
+
};
|
|
72
|
+
"4xl": {
|
|
73
|
+
readonly label: "4 XL";
|
|
74
|
+
readonly value: "4xl";
|
|
75
|
+
readonly css: "calc(var(--base-spacing, 4px) * 9)";
|
|
76
|
+
};
|
|
77
|
+
"5xl": {
|
|
78
|
+
readonly label: "5 XL";
|
|
79
|
+
readonly value: "5xl";
|
|
80
|
+
readonly css: "calc(var(--base-spacing, 4px) * 10)";
|
|
81
|
+
};
|
|
82
|
+
"6xl": {
|
|
83
|
+
readonly label: "6 XL";
|
|
84
|
+
readonly value: "6xl";
|
|
85
|
+
readonly css: "calc(var(--base-spacing, 4px) * 11)";
|
|
86
|
+
};
|
|
87
|
+
"7xl": {
|
|
88
|
+
readonly label: "7 XL";
|
|
89
|
+
readonly value: "7xl";
|
|
90
|
+
readonly css: "calc(var(--base-spacing, 4px) * 12)";
|
|
91
|
+
};
|
|
92
|
+
"8xl": {
|
|
93
|
+
readonly label: "8 XL";
|
|
94
|
+
readonly value: "8xl";
|
|
95
|
+
readonly css: "calc(var(--base-spacing, 4px) * 14)";
|
|
96
|
+
};
|
|
97
|
+
"9xl": {
|
|
98
|
+
readonly label: "9 XL";
|
|
99
|
+
readonly value: "9xl";
|
|
100
|
+
readonly css: "calc(var(--base-spacing, 4px) * 16)";
|
|
101
|
+
};
|
|
102
|
+
"10xl": {
|
|
103
|
+
readonly label: "10 XL";
|
|
104
|
+
readonly value: "10xl";
|
|
105
|
+
readonly css: "calc(var(--base-spacing, 4px) * 20)";
|
|
106
|
+
};
|
|
107
|
+
"11xl": {
|
|
108
|
+
readonly label: "11 XL";
|
|
109
|
+
readonly value: "11xl";
|
|
110
|
+
readonly css: "calc(var(--base-spacing, 4px) * 24)";
|
|
111
|
+
};
|
|
112
|
+
"12xl": {
|
|
113
|
+
readonly label: "12 XL";
|
|
114
|
+
readonly value: "12xl";
|
|
115
|
+
readonly css: "calc(var(--base-spacing, 4px) * 28)";
|
|
116
|
+
};
|
|
117
|
+
"13xl": {
|
|
118
|
+
readonly label: "13 XL";
|
|
119
|
+
readonly value: "13xl";
|
|
120
|
+
readonly css: "calc(var(--base-spacing, 4px) * 32)";
|
|
121
|
+
};
|
|
122
|
+
"14xl": {
|
|
123
|
+
readonly label: "14 XL";
|
|
124
|
+
readonly value: "14xl";
|
|
125
|
+
readonly css: "calc(var(--base-spacing, 4px) * 36)";
|
|
126
|
+
};
|
|
127
|
+
"15xl": {
|
|
128
|
+
readonly label: "15 XL";
|
|
129
|
+
readonly value: "15xl";
|
|
130
|
+
readonly css: "calc(var(--base-spacing, 4px) * 40)";
|
|
131
|
+
};
|
|
132
|
+
"16xl": {
|
|
133
|
+
readonly label: "16 XL";
|
|
134
|
+
readonly value: "16xl";
|
|
135
|
+
readonly css: "calc(var(--base-spacing, 4px) * 44)";
|
|
136
|
+
};
|
|
137
|
+
"17xl": {
|
|
138
|
+
readonly label: "17 XL";
|
|
139
|
+
readonly value: "17xl";
|
|
140
|
+
readonly css: "calc(var(--base-spacing, 4px) * 48)";
|
|
141
|
+
};
|
|
142
|
+
"18xl": {
|
|
143
|
+
readonly label: "18 XL";
|
|
144
|
+
readonly value: "18xl";
|
|
145
|
+
readonly css: "calc(var(--base-spacing, 4px) * 52)";
|
|
146
|
+
};
|
|
147
|
+
"19xl": {
|
|
148
|
+
readonly label: "19 XL";
|
|
149
|
+
readonly value: "19xl";
|
|
150
|
+
readonly css: "calc(var(--base-spacing, 4px) * 56)";
|
|
151
|
+
};
|
|
152
|
+
"20xl": {
|
|
153
|
+
readonly label: "20 XL";
|
|
154
|
+
readonly value: "20xl";
|
|
155
|
+
readonly css: "calc(var(--base-spacing, 4px) * 60)";
|
|
156
|
+
};
|
|
157
|
+
"21xl": {
|
|
158
|
+
readonly label: "21 XL";
|
|
159
|
+
readonly value: "21xl";
|
|
160
|
+
readonly css: "calc(var(--base-spacing, 4px) * 64)";
|
|
161
|
+
};
|
|
162
|
+
"22xl": {
|
|
163
|
+
readonly label: "22 XL";
|
|
164
|
+
readonly value: "22xl";
|
|
165
|
+
readonly css: "calc(var(--base-spacing, 4px) * 72)";
|
|
166
|
+
};
|
|
167
|
+
"23xl": {
|
|
168
|
+
readonly label: "23 XL";
|
|
169
|
+
readonly value: "23xl";
|
|
170
|
+
readonly css: "calc(var(--base-spacing, 4px) * 80)";
|
|
171
|
+
};
|
|
172
|
+
"24xl": {
|
|
173
|
+
readonly label: "24 XL";
|
|
174
|
+
readonly value: "24xl";
|
|
175
|
+
readonly css: "calc(var(--base-spacing, 4px) * 96)";
|
|
176
|
+
};
|
|
177
|
+
auto: {
|
|
178
|
+
label: string;
|
|
179
|
+
value: string;
|
|
180
|
+
css: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
//# sourceMappingURL=marginOptions.d.ts.map
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
export declare const spaceOptions: {
|
|
2
|
+
readonly none: {
|
|
3
|
+
readonly label: "None";
|
|
4
|
+
readonly value: "none";
|
|
5
|
+
readonly css: "0px";
|
|
6
|
+
};
|
|
7
|
+
readonly "6xs": {
|
|
8
|
+
readonly label: "6 XS";
|
|
9
|
+
readonly value: "6xs";
|
|
10
|
+
readonly css: "calc(var(--base-spacing, 4px) * 0.25)";
|
|
11
|
+
};
|
|
12
|
+
readonly "5xs": {
|
|
13
|
+
readonly label: "5 XS";
|
|
14
|
+
readonly value: "5xs";
|
|
15
|
+
readonly css: "calc(var(--base-spacing, 4px) * 0.5)";
|
|
16
|
+
};
|
|
17
|
+
readonly "4xs": {
|
|
18
|
+
readonly label: "4 XS";
|
|
19
|
+
readonly value: "4xs";
|
|
20
|
+
readonly css: "calc(var(--base-spacing, 4px) * 1)";
|
|
21
|
+
};
|
|
22
|
+
readonly "3xs": {
|
|
23
|
+
readonly label: "3 XS";
|
|
24
|
+
readonly value: "3xs";
|
|
25
|
+
readonly css: "calc(var(--base-spacing, 4px) * 1.5)";
|
|
26
|
+
};
|
|
27
|
+
readonly "2xs": {
|
|
28
|
+
readonly label: "2 XS";
|
|
29
|
+
readonly value: "2xs";
|
|
30
|
+
readonly css: "calc(var(--base-spacing, 4px) * 2)";
|
|
31
|
+
};
|
|
32
|
+
readonly xs: {
|
|
33
|
+
readonly label: "XS";
|
|
34
|
+
readonly value: "xs";
|
|
35
|
+
readonly css: "calc(var(--base-spacing, 4px) * 2.5)";
|
|
36
|
+
};
|
|
37
|
+
readonly sm: {
|
|
38
|
+
readonly label: "SM";
|
|
39
|
+
readonly value: "sm";
|
|
40
|
+
readonly css: "calc(var(--base-spacing, 4px) * 3)";
|
|
41
|
+
};
|
|
42
|
+
readonly md: {
|
|
43
|
+
readonly label: "MD";
|
|
44
|
+
readonly value: "md";
|
|
45
|
+
readonly css: "calc(var(--base-spacing, 4px) * 3.5)";
|
|
46
|
+
};
|
|
47
|
+
readonly base: {
|
|
48
|
+
readonly label: "Base";
|
|
49
|
+
readonly value: "base";
|
|
50
|
+
readonly css: "calc(var(--base-spacing, 4px) * 4)";
|
|
51
|
+
};
|
|
52
|
+
readonly lg: {
|
|
53
|
+
readonly label: "LG";
|
|
54
|
+
readonly value: "lg";
|
|
55
|
+
readonly css: "calc(var(--base-spacing, 4px) * 5)";
|
|
56
|
+
};
|
|
57
|
+
readonly xl: {
|
|
58
|
+
readonly label: "XL";
|
|
59
|
+
readonly value: "xl";
|
|
60
|
+
readonly css: "calc(var(--base-spacing, 4px) * 6)";
|
|
61
|
+
};
|
|
62
|
+
readonly "2xl": {
|
|
63
|
+
readonly label: "2 XL";
|
|
64
|
+
readonly value: "2xl";
|
|
65
|
+
readonly css: "calc(var(--base-spacing, 4px) * 7)";
|
|
66
|
+
};
|
|
67
|
+
readonly "3xl": {
|
|
68
|
+
readonly label: "3 XL";
|
|
69
|
+
readonly value: "3xl";
|
|
70
|
+
readonly css: "calc(var(--base-spacing, 4px) * 8)";
|
|
71
|
+
};
|
|
72
|
+
readonly "4xl": {
|
|
73
|
+
readonly label: "4 XL";
|
|
74
|
+
readonly value: "4xl";
|
|
75
|
+
readonly css: "calc(var(--base-spacing, 4px) * 9)";
|
|
76
|
+
};
|
|
77
|
+
readonly "5xl": {
|
|
78
|
+
readonly label: "5 XL";
|
|
79
|
+
readonly value: "5xl";
|
|
80
|
+
readonly css: "calc(var(--base-spacing, 4px) * 10)";
|
|
81
|
+
};
|
|
82
|
+
readonly "6xl": {
|
|
83
|
+
readonly label: "6 XL";
|
|
84
|
+
readonly value: "6xl";
|
|
85
|
+
readonly css: "calc(var(--base-spacing, 4px) * 11)";
|
|
86
|
+
};
|
|
87
|
+
readonly "7xl": {
|
|
88
|
+
readonly label: "7 XL";
|
|
89
|
+
readonly value: "7xl";
|
|
90
|
+
readonly css: "calc(var(--base-spacing, 4px) * 12)";
|
|
91
|
+
};
|
|
92
|
+
readonly "8xl": {
|
|
93
|
+
readonly label: "8 XL";
|
|
94
|
+
readonly value: "8xl";
|
|
95
|
+
readonly css: "calc(var(--base-spacing, 4px) * 14)";
|
|
96
|
+
};
|
|
97
|
+
readonly "9xl": {
|
|
98
|
+
readonly label: "9 XL";
|
|
99
|
+
readonly value: "9xl";
|
|
100
|
+
readonly css: "calc(var(--base-spacing, 4px) * 16)";
|
|
101
|
+
};
|
|
102
|
+
readonly "10xl": {
|
|
103
|
+
readonly label: "10 XL";
|
|
104
|
+
readonly value: "10xl";
|
|
105
|
+
readonly css: "calc(var(--base-spacing, 4px) * 20)";
|
|
106
|
+
};
|
|
107
|
+
readonly "11xl": {
|
|
108
|
+
readonly label: "11 XL";
|
|
109
|
+
readonly value: "11xl";
|
|
110
|
+
readonly css: "calc(var(--base-spacing, 4px) * 24)";
|
|
111
|
+
};
|
|
112
|
+
readonly "12xl": {
|
|
113
|
+
readonly label: "12 XL";
|
|
114
|
+
readonly value: "12xl";
|
|
115
|
+
readonly css: "calc(var(--base-spacing, 4px) * 28)";
|
|
116
|
+
};
|
|
117
|
+
readonly "13xl": {
|
|
118
|
+
readonly label: "13 XL";
|
|
119
|
+
readonly value: "13xl";
|
|
120
|
+
readonly css: "calc(var(--base-spacing, 4px) * 32)";
|
|
121
|
+
};
|
|
122
|
+
readonly "14xl": {
|
|
123
|
+
readonly label: "14 XL";
|
|
124
|
+
readonly value: "14xl";
|
|
125
|
+
readonly css: "calc(var(--base-spacing, 4px) * 36)";
|
|
126
|
+
};
|
|
127
|
+
readonly "15xl": {
|
|
128
|
+
readonly label: "15 XL";
|
|
129
|
+
readonly value: "15xl";
|
|
130
|
+
readonly css: "calc(var(--base-spacing, 4px) * 40)";
|
|
131
|
+
};
|
|
132
|
+
readonly "16xl": {
|
|
133
|
+
readonly label: "16 XL";
|
|
134
|
+
readonly value: "16xl";
|
|
135
|
+
readonly css: "calc(var(--base-spacing, 4px) * 44)";
|
|
136
|
+
};
|
|
137
|
+
readonly "17xl": {
|
|
138
|
+
readonly label: "17 XL";
|
|
139
|
+
readonly value: "17xl";
|
|
140
|
+
readonly css: "calc(var(--base-spacing, 4px) * 48)";
|
|
141
|
+
};
|
|
142
|
+
readonly "18xl": {
|
|
143
|
+
readonly label: "18 XL";
|
|
144
|
+
readonly value: "18xl";
|
|
145
|
+
readonly css: "calc(var(--base-spacing, 4px) * 52)";
|
|
146
|
+
};
|
|
147
|
+
readonly "19xl": {
|
|
148
|
+
readonly label: "19 XL";
|
|
149
|
+
readonly value: "19xl";
|
|
150
|
+
readonly css: "calc(var(--base-spacing, 4px) * 56)";
|
|
151
|
+
};
|
|
152
|
+
readonly "20xl": {
|
|
153
|
+
readonly label: "20 XL";
|
|
154
|
+
readonly value: "20xl";
|
|
155
|
+
readonly css: "calc(var(--base-spacing, 4px) * 60)";
|
|
156
|
+
};
|
|
157
|
+
readonly "21xl": {
|
|
158
|
+
readonly label: "21 XL";
|
|
159
|
+
readonly value: "21xl";
|
|
160
|
+
readonly css: "calc(var(--base-spacing, 4px) * 64)";
|
|
161
|
+
};
|
|
162
|
+
readonly "22xl": {
|
|
163
|
+
readonly label: "22 XL";
|
|
164
|
+
readonly value: "22xl";
|
|
165
|
+
readonly css: "calc(var(--base-spacing, 4px) * 72)";
|
|
166
|
+
};
|
|
167
|
+
readonly "23xl": {
|
|
168
|
+
readonly label: "23 XL";
|
|
169
|
+
readonly value: "23xl";
|
|
170
|
+
readonly css: "calc(var(--base-spacing, 4px) * 80)";
|
|
171
|
+
};
|
|
172
|
+
readonly "24xl": {
|
|
173
|
+
readonly label: "24 XL";
|
|
174
|
+
readonly value: "24xl";
|
|
175
|
+
readonly css: "calc(var(--base-spacing, 4px) * 96)";
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
//# sourceMappingURL=spaceOptions.d.ts.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSStyleKeys } from './propertyMap';
|
|
2
|
+
type CSSOption = {
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
css?: string;
|
|
6
|
+
};
|
|
7
|
+
export type CSSOptionsRecord = Record<string, CSSOption>;
|
|
8
|
+
export declare const cssOptionsMap: Partial<Record<CSSStyleKeys, {
|
|
9
|
+
options: CSSOptionsRecord;
|
|
10
|
+
skip?: boolean;
|
|
11
|
+
parser?: (value: any) => string;
|
|
12
|
+
}>>;
|
|
13
|
+
export default cssOptionsMap;
|
|
14
|
+
//# sourceMappingURL=optionsMap.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type CSSStyleKeys = "font-size" | "font-weight" | "text-align" | "text-decoration" | "line-height" | "letter-spacing" | "color" | "display" | "flex-direction" | "justify-content" | "align-items" | "column-gap" | "row-gap" | "gap" | "grid-template-columns" | "grid-template-rows" | "width" | "min-width" | "max-width" | "height" | "filter" | "min-height" | "max-height" | "object-fit" | "border-radius" | "border-style" | "border-width" | "border-color" | "background-color" | "background-size" | "background-position" | "box-shadow" | "padding" | "padding-top" | "padding-bottom" | "padding-left" | "padding-right" | "margin" | "margin-top" | "margin-bottom" | "margin-left" | "margin-right" | "opacity" | "font" | "background-image" | "overflow" | "-webkit-line-clamp" | "-webkit-box-orient" | "font-family" | "number_of_slides" | "background_video_overlay_color" | "background_video_position";
|
|
2
|
+
//# sourceMappingURL=propertyMap.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ILevoMembership, IWorkspace } from '@levo-so/core';
|
|
2
|
+
interface AuthProviderInterface {
|
|
3
|
+
isLoggedIn: boolean;
|
|
4
|
+
account: ILevoMembership.Account | null;
|
|
5
|
+
workspace: IWorkspace | null;
|
|
6
|
+
isAuthLoaded: boolean;
|
|
7
|
+
isAuthLoading: boolean;
|
|
8
|
+
isSignOutLoading: boolean;
|
|
9
|
+
isVerifying: boolean;
|
|
10
|
+
handleRefetchLoginStatus: (onRefetchSuccess?: (user: ILevoMembership.Account) => void) => void;
|
|
11
|
+
handleSignOut: (handleSignOutSuccess?: () => void) => void;
|
|
12
|
+
handleVerifyOtp: (config: {
|
|
13
|
+
email: string;
|
|
14
|
+
otp: string;
|
|
15
|
+
onVerifySuccess?: ((account: ILevoMembership.Account | null) => void) | undefined;
|
|
16
|
+
onVerifyError?: (() => void) | undefined;
|
|
17
|
+
}) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const AuthProvider: React.FC<{
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
workspace: IWorkspace | null;
|
|
22
|
+
}>;
|
|
23
|
+
export default AuthProvider;
|
|
24
|
+
export declare const useAuth: () => AuthProviderInterface;
|
|
25
|
+
//# sourceMappingURL=AuthProvider.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IBlockInstance } from '../interfaces';
|
|
2
|
+
import { IPageContext, IBlockContext } from '../contentEngine';
|
|
3
|
+
type BlockContextType = {
|
|
4
|
+
parsedBlockData?: IBlockInstance;
|
|
5
|
+
setParsedBlockData?: React.Dispatch<React.SetStateAction<IBlockInstance | undefined>>;
|
|
6
|
+
blockData?: IBlockInstance;
|
|
7
|
+
pageContext?: IPageContext;
|
|
8
|
+
blockContext?: IBlockContext;
|
|
9
|
+
};
|
|
10
|
+
export declare const BlockProvider: React.FC<{
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
value: BlockContextType;
|
|
13
|
+
}>;
|
|
14
|
+
export declare const useBlockContext: () => BlockContextType;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=BlockContext.d.ts.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IBlock, IBlockCategory } from '../interfaces';
|
|
2
|
+
export declare const getBlocksFromCategory: (category: string) => IBlock[];
|
|
3
|
+
export declare const getSingleBlock: (key: string) => IBlock | null;
|
|
4
|
+
export declare const getAllCategories: () => IBlockCategory[];
|
|
5
|
+
//# sourceMappingURL=blockHelpers.d.ts.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { OKLCHColor } from '../interfaces';
|
|
2
|
+
/**
|
|
3
|
+
* Convert RGBA color to OKLCH object format for theme storage
|
|
4
|
+
* Returns default black color for invalid input
|
|
5
|
+
*/
|
|
6
|
+
export declare const rgbaToOKLCH: (rgba: {
|
|
7
|
+
r: number;
|
|
8
|
+
g: number;
|
|
9
|
+
b: number;
|
|
10
|
+
a?: number;
|
|
11
|
+
}) => OKLCHColor;
|
|
12
|
+
/**
|
|
13
|
+
* Convert OKLCH object to OKLCH CSS string format
|
|
14
|
+
*/
|
|
15
|
+
export declare const oklchToString: (oklchColor: OKLCHColor | string | undefined) => string;
|
|
16
|
+
/**
|
|
17
|
+
* Convert RGBA to OKLCH CSS string format (for non-theme usage)
|
|
18
|
+
*/
|
|
19
|
+
export declare const rgbaToOKLCHString: (rgba: {
|
|
20
|
+
r: number;
|
|
21
|
+
g: number;
|
|
22
|
+
b: number;
|
|
23
|
+
a?: number;
|
|
24
|
+
}) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Convert OKLCH CSS string to RGBA CSS string format
|
|
27
|
+
* Returns black color string for invalid input
|
|
28
|
+
*/
|
|
29
|
+
export declare const oklchStringToRGBA: (oklch: string) => string;
|
|
30
|
+
/**
|
|
31
|
+
* Validate if a string is a valid OKLCH color
|
|
32
|
+
* @returns {boolean} True if the string is a valid OKLCH color, false otherwise
|
|
33
|
+
*/
|
|
34
|
+
export declare const isValidOKLCH: (colorString: string) => boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Convert hex color string to OKLCH object format
|
|
37
|
+
* Returns default black color for invalid input
|
|
38
|
+
*/
|
|
39
|
+
export declare const hexToOKLCH: (hexColor: string) => OKLCHColor;
|
|
40
|
+
/**
|
|
41
|
+
* Parse OKLCH string back to object format
|
|
42
|
+
* Returns default black color for invalid input
|
|
43
|
+
*/
|
|
44
|
+
export declare const parseOKLCHString: (oklchString: string) => OKLCHColor;
|
|
45
|
+
/**
|
|
46
|
+
* Convert OKLCH object to RGBA string format for color pickers
|
|
47
|
+
* Returns black color string for invalid input
|
|
48
|
+
*/
|
|
49
|
+
export declare const oklchToRGBA: (oklchColor: OKLCHColor) => string;
|
|
50
|
+
export declare const generateAccentColor: (oklch: OKLCHColor) => {
|
|
51
|
+
oklch: OKLCHColor;
|
|
52
|
+
hex: string;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=colorUtils.d.ts.map
|