@commercetools-demo/puck-theme-manager 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/index.d.mts +43 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +1923 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1880 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +61 -0
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeTokens } from '@commercetools-demo/puck-types';
|
|
3
|
+
export { ImportResult, ThemeTokens } from '@commercetools-demo/puck-types';
|
|
4
|
+
|
|
5
|
+
interface InnerProps$1 {
|
|
6
|
+
backButton?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
icon: React.ReactElement;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface ThemeManagerProps extends InnerProps$1 {
|
|
13
|
+
baseURL: string;
|
|
14
|
+
projectKey: string;
|
|
15
|
+
businessUnitKey: string;
|
|
16
|
+
jwtToken: string;
|
|
17
|
+
}
|
|
18
|
+
declare const ThemeManager: React.FC<ThemeManagerProps>;
|
|
19
|
+
|
|
20
|
+
interface InnerProps {
|
|
21
|
+
backButton?: {
|
|
22
|
+
label: string;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
icon: React.ReactElement;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ImportContentTypesProps extends InnerProps {
|
|
28
|
+
baseURL: string;
|
|
29
|
+
projectKey: string;
|
|
30
|
+
businessUnitKey: string;
|
|
31
|
+
jwtToken: string;
|
|
32
|
+
}
|
|
33
|
+
declare const ImportContentTypes: React.FC<ImportContentTypesProps>;
|
|
34
|
+
|
|
35
|
+
declare const DEFAULT_THEME: ThemeTokens;
|
|
36
|
+
|
|
37
|
+
type DesignParadigm = 'flat' | 'skeuomorphism' | 'material' | 'neumorphism' | 'glassmorphism' | 'brutalism' | 'claymorphism' | 'minimalism' | 'dark-moody';
|
|
38
|
+
declare const themePresets: Record<DesignParadigm, ThemeTokens>;
|
|
39
|
+
declare const paradigmLabels: Record<DesignParadigm, string>;
|
|
40
|
+
declare const PRESET_KEYS_SELECTOR: DesignParadigm[];
|
|
41
|
+
declare function buildCssVars(tokens: ThemeTokens): Record<string, string>;
|
|
42
|
+
|
|
43
|
+
export { DEFAULT_THEME, type DesignParadigm, ImportContentTypes, type ImportContentTypesProps, PRESET_KEYS_SELECTOR, ThemeManager, type ThemeManagerProps, buildCssVars, paradigmLabels, themePresets };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ThemeTokens } from '@commercetools-demo/puck-types';
|
|
3
|
+
export { ImportResult, ThemeTokens } from '@commercetools-demo/puck-types';
|
|
4
|
+
|
|
5
|
+
interface InnerProps$1 {
|
|
6
|
+
backButton?: {
|
|
7
|
+
label: string;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
icon: React.ReactElement;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface ThemeManagerProps extends InnerProps$1 {
|
|
13
|
+
baseURL: string;
|
|
14
|
+
projectKey: string;
|
|
15
|
+
businessUnitKey: string;
|
|
16
|
+
jwtToken: string;
|
|
17
|
+
}
|
|
18
|
+
declare const ThemeManager: React.FC<ThemeManagerProps>;
|
|
19
|
+
|
|
20
|
+
interface InnerProps {
|
|
21
|
+
backButton?: {
|
|
22
|
+
label: string;
|
|
23
|
+
onClick: () => void;
|
|
24
|
+
icon: React.ReactElement;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
interface ImportContentTypesProps extends InnerProps {
|
|
28
|
+
baseURL: string;
|
|
29
|
+
projectKey: string;
|
|
30
|
+
businessUnitKey: string;
|
|
31
|
+
jwtToken: string;
|
|
32
|
+
}
|
|
33
|
+
declare const ImportContentTypes: React.FC<ImportContentTypesProps>;
|
|
34
|
+
|
|
35
|
+
declare const DEFAULT_THEME: ThemeTokens;
|
|
36
|
+
|
|
37
|
+
type DesignParadigm = 'flat' | 'skeuomorphism' | 'material' | 'neumorphism' | 'glassmorphism' | 'brutalism' | 'claymorphism' | 'minimalism' | 'dark-moody';
|
|
38
|
+
declare const themePresets: Record<DesignParadigm, ThemeTokens>;
|
|
39
|
+
declare const paradigmLabels: Record<DesignParadigm, string>;
|
|
40
|
+
declare const PRESET_KEYS_SELECTOR: DesignParadigm[];
|
|
41
|
+
declare function buildCssVars(tokens: ThemeTokens): Record<string, string>;
|
|
42
|
+
|
|
43
|
+
export { DEFAULT_THEME, type DesignParadigm, ImportContentTypes, type ImportContentTypesProps, PRESET_KEYS_SELECTOR, ThemeManager, type ThemeManagerProps, buildCssVars, paradigmLabels, themePresets };
|