@billgangcom/theme-lib 1.28.0 → 1.29.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/App.d.ts +1 -1
- package/dist/abstractions/IBlock.d.ts +2 -0
- package/dist/builder/components/Header/SaveButton/index.d.ts +6 -0
- package/dist/builder/components/Sidebar/AddSections/BlockColors/index.d.ts +7 -0
- package/dist/builder/components/Sidebar/Settings/index.d.ts +1 -0
- package/dist/builder/constants/blocks.d.ts +3 -0
- package/dist/builder/constants/color-variables.d.ts +48 -0
- package/dist/builder/constants/index.d.ts +1 -0
- package/dist/builder/constants/pages.d.ts +6 -1
- package/dist/builder/store/index.d.ts +1 -0
- package/dist/builder/store/useErrorStore.d.ts +2 -2
- package/dist/builder.cjs.js +14 -14
- package/dist/builder.es.js +1436 -1291
- package/dist/{index-Dq4uNns7.js → index-CCmkmGkM.js} +121 -130
- package/dist/{index-BeV20nM7.cjs → index-yQeZRD3_.cjs} +19 -19
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -4
- package/dist/lib/api.d.ts +2 -2
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +2 -2
- package/package.json +1 -1
package/dist/App.d.ts
CHANGED
|
@@ -11,4 +11,4 @@ interface AppProps {
|
|
|
11
11
|
export declare const App: React.FC<AppProps>;
|
|
12
12
|
export * from './abstractions';
|
|
13
13
|
export { hotReload } from './builder/utils';
|
|
14
|
-
export { iconNames, type IconNames } from './builder/constants';
|
|
14
|
+
export { iconNames, type IconNames, ColorVariables } from './builder/constants';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ColorVariables } from '@constants';
|
|
1
2
|
import type { PageContext } from './PageContext';
|
|
2
3
|
export interface BlockSettings {
|
|
3
4
|
displayName: string;
|
|
@@ -6,6 +7,7 @@ export interface BlockSettings {
|
|
|
6
7
|
}
|
|
7
8
|
export interface IBlock {
|
|
8
9
|
blockSettings: BlockSettings;
|
|
10
|
+
blockColors: ColorVariables[];
|
|
9
11
|
renderBlock(settings: Record<string, any>, context: PageContext): JSX.Element;
|
|
10
12
|
renderSettings(context: PageContext): JSX.Element;
|
|
11
13
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IBlock, ISettings, PageContext } from '../../abstractions';
|
|
2
|
+
import { ColorVariables } from './color-variables';
|
|
2
3
|
export type Block = Record<string, any>;
|
|
3
4
|
export declare class SettingsBlock implements ISettings {
|
|
4
5
|
private settings;
|
|
@@ -22,6 +23,7 @@ export declare class HeaderBlock implements IBlock {
|
|
|
22
23
|
signUp: boolean;
|
|
23
24
|
fixedHeader: boolean;
|
|
24
25
|
};
|
|
26
|
+
blockColors: ColorVariables[];
|
|
25
27
|
constructor(blockSettings?: any);
|
|
26
28
|
renderBlock(_settings: Record<string, any>, _context: PageContext): JSX.Element;
|
|
27
29
|
renderSettings(_context: PageContext): JSX.Element;
|
|
@@ -44,6 +46,7 @@ export declare class FooterBlock implements IBlock {
|
|
|
44
46
|
signUp: boolean;
|
|
45
47
|
fixedHeader: boolean;
|
|
46
48
|
};
|
|
49
|
+
blockColors: ColorVariables[];
|
|
47
50
|
constructor(blockSettings?: any);
|
|
48
51
|
renderBlock(_settings: Record<string, any>, _context: PageContext): JSX.Element;
|
|
49
52
|
renderSettings(_context: PageContext): JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export declare enum ColorVariables {
|
|
2
|
+
ICON_LINK = "--icon-link",
|
|
3
|
+
ICON_ERROR = "--icon-error",
|
|
4
|
+
ICON_ACTION = "--icon-action",
|
|
5
|
+
ICON_PRIMARY = "--icon-primary",
|
|
6
|
+
ICON_SUCCESS = "--icon-success",
|
|
7
|
+
ICON_WARNING = "--icon-warning",
|
|
8
|
+
ICON_DISABLED = "--icon-disabled",
|
|
9
|
+
ICON_INVERTED = "--icon-inverted",
|
|
10
|
+
ICON_TERTIARY = "--icon-tertiary",
|
|
11
|
+
ICON_SECONDARY = "--icon-secondary",
|
|
12
|
+
ICON_ACTION_HOVER = "--icon-actionHover",
|
|
13
|
+
ICON_INFORMATION = "--icon-information",
|
|
14
|
+
TEXT_LINK = "--text-link",
|
|
15
|
+
TEXT_ERROR = "--text-error",
|
|
16
|
+
TEXT_ACTION = "--text-action",
|
|
17
|
+
TEXT_PRIMARY = "--text-primary",
|
|
18
|
+
TEXT_SUCCESS = "--text-success",
|
|
19
|
+
TEXT_WARNING = "--text-warning",
|
|
20
|
+
TEXT_DISABLED = "--text-disabled",
|
|
21
|
+
TEXT_INVERTED = "--text-inverted",
|
|
22
|
+
TEXT_TERTIARY = "--text-tertiary",
|
|
23
|
+
TEXT_SECONDARY = "--text-secondary",
|
|
24
|
+
TEXT_ACTION_HOVER = "--text-actionHover",
|
|
25
|
+
TEXT_INFORMATION = "--text-information",
|
|
26
|
+
BORDER_ERROR = "--border-error",
|
|
27
|
+
BORDER_FOCUS = "--border-focus",
|
|
28
|
+
BORDER_ACTION = "--border-action",
|
|
29
|
+
BORDER_PRIMARY = "--border-primary",
|
|
30
|
+
BORDER_SUCCESS = "--border-success",
|
|
31
|
+
BORDER_WARNING = "--border-warning",
|
|
32
|
+
BORDER_DISABLED = "--border-disabled",
|
|
33
|
+
BORDER_SECONDARY = "--border-secondary",
|
|
34
|
+
BORDER_ACTION_HOVER = "--border-actionHover",
|
|
35
|
+
BORDER_INFORMATION = "--border-information",
|
|
36
|
+
SURFACE_ERROR = "--surface-error",
|
|
37
|
+
SURFACE_MODAL = "--surface-modal",
|
|
38
|
+
SURFACE_ACTION1 = "--surface-action1",
|
|
39
|
+
SURFACE_ACTION2 = "--surface-action2",
|
|
40
|
+
SURFACE_PRIMARY = "--surface-primary",
|
|
41
|
+
SURFACE_SUCCESS = "--surface-success",
|
|
42
|
+
SURFACE_WARNING = "--surface-warning",
|
|
43
|
+
SURFACE_DISABLED = "--surface-disabled",
|
|
44
|
+
SURFACE_SECONDARY = "--surface-secondary",
|
|
45
|
+
SURFACE_INFORMATION = "--surface-information",
|
|
46
|
+
SURFACE_ACTION1_HOVER = "--surface-action1Hover",
|
|
47
|
+
SURFACE_ACTION2_HOVER = "--surface-action2Hover"
|
|
48
|
+
}
|
|
@@ -7,10 +7,15 @@ export interface PageCeo {
|
|
|
7
7
|
description: string;
|
|
8
8
|
}
|
|
9
9
|
export interface Page {
|
|
10
|
+
id?: number;
|
|
11
|
+
createdAt?: string;
|
|
10
12
|
path: string;
|
|
11
13
|
name: string;
|
|
12
14
|
icon: IconNames;
|
|
13
|
-
seo
|
|
15
|
+
seo?: PageCeo;
|
|
14
16
|
visibility: Visibility;
|
|
17
|
+
tags?: string[];
|
|
18
|
+
isPrivate?: boolean;
|
|
19
|
+
isAutomaticallyGenerated?: boolean;
|
|
15
20
|
}
|
|
16
21
|
export declare const pages: Record<string, Page>;
|