@gooddata/sdk-ui-theme-provider 11.55.0 → 11.56.0-alpha.1
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/esm/ThemeProvider/Context.d.ts +1 -1
- package/esm/ThemeProvider/Context.d.ts.map +1 -1
- package/esm/ThemeProvider/isDarkTheme.d.ts.map +1 -1
- package/esm/ThemeProvider/prepareTheme.d.ts.map +1 -1
- package/esm/colorValidation.d.ts.map +1 -1
- package/esm/complementaryPalette.d.ts.map +1 -1
- package/esm/cssProperties.d.ts +1 -1
- package/esm/cssProperties.d.ts.map +1 -1
- package/esm/cssProperty.d.ts.map +1 -1
- package/esm/derivedColors.d.ts +6 -6
- package/esm/derivedColors.d.ts.map +1 -1
- package/esm/sdk-ui-theme-provider.d.ts +1 -1
- package/esm/variablesSpec/DefaultThemePreview.js +3 -13
- package/package.json +10 -10
|
@@ -69,7 +69,7 @@ export declare function ThemeContextProvider({ children, theme, referenceTheme,
|
|
|
69
69
|
* @param theme - theme to use instead of context value. If undefined, the context value is used.
|
|
70
70
|
* @public
|
|
71
71
|
*/
|
|
72
|
-
export declare const useTheme: (theme?: ITheme
|
|
72
|
+
export declare const useTheme: (theme?: ITheme) => ITheme | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* Hook for reaching the reference theme from context.
|
|
75
75
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/Context.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,SAAS,EAA6B,MAAM,OAAO,CAAC;AAEtF,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAoBlD;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;OAGG;IACH,KAAK,EA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AS,CAAC,EAAE,MAAM,CAAA;CAAE,EACtE,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,GAC5B,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,OAAO,GAAG,gBAAgB,GAAG,aAAa,CAAC,CAAC,CAIpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isDarkTheme.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/isDarkTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"isDarkTheme.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/isDarkTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,WAAW,UAAW,MAAM,GAAG,SAAS,KAAG,OASvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareTheme.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/prepareTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAA2D,MAAM,qBAAqB,CAAC;AAmD3G;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"prepareTheme.d.ts","sourceRoot":"","sources":["../../src/ThemeProvider/prepareTheme.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAA2D,MAAM,qBAAqB,CAAC;AAmD3G;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,UAAW,MAAM,KAAG,MA0B/C,CAAC;AAEF,eAAO,MAAM,2BAA2B,UAAW,MAAM,KAAG,MAY3D,CAAC;AAEF,eAAO,MAAM,iBAAiB,UAAW,MAAM,KAAG,MAejD,CAAC;AAEF,eAAO,MAAM,yBAAyB,UAAW,MAAM,KAAG,MAazD,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,MAAM,KAAG,MAsBnD,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,MAAM,2CAAsC,MAU/E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorValidation.d.ts","sourceRoot":"","sources":["../src/colorValidation.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"colorValidation.d.ts","sourceRoot":"","sources":["../src/colorValidation.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,MAAM,EAId,MAAM,qBAAqB,CAAC;AAE7B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,UAAW,OAAO,KAAG,OAWlD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACjB;AAkCD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,8BAA8B,UAAW,MAAM,GAAG,SAAS,KAAG,MAAM,EAWhF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,UAAW,MAAM,GAAG,SAAS,KAAG,kBAAkB,EAepF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"complementaryPalette.d.ts","sourceRoot":"","sources":["../src/complementaryPalette.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AA2BtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"complementaryPalette.d.ts","sourceRoot":"","sources":["../src/complementaryPalette.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AA2BtE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,YAAa,0BAA0B,KAAG,0BAa7E,CAAC"}
|
package/esm/cssProperties.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export type ParserFunction = {
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function parseThemeToCssProperties(object: ITheme, parserFunctions?: ParserFunction[], currentKey?: string, isScoped?: boolean, scopeTo?: HTMLElement, scopeId?: string): CssProperty[];
|
|
15
15
|
export declare const generateShadowColor: (palette: IThemePalette, isDarkTheme: boolean) => CssProperty[];
|
|
16
|
-
export declare const clearCssProperties: (isScoped?: boolean
|
|
16
|
+
export declare const clearCssProperties: (isScoped?: boolean, scopeTo?: HTMLElement, scopeId?: string) => void;
|
|
17
17
|
/**
|
|
18
18
|
* Converts properties from theme object into CSS variables and injects them into <body>
|
|
19
19
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssProperties.d.ts","sourceRoot":"","sources":["../src/cssProperties.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,MAAM,EAGX,KAAK,aAAa,EAErB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAsEpE,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMjD;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3F,CAAC;AA+EF;;GAEG;AACH,wBAAgB,yBAAyB,CACrC,MAAM,EAAE,MAAM,EACd,eAAe,GAAE,cAAc,EAAO,EACtC,UAAU,SAAS,EACnB,QAAQ,CAAC,EAAE,OAAO,EAClB,OAAO,CAAC,EAAE,WAAW,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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cssProperty.d.ts","sourceRoot":"","sources":["../src/cssProperty.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"cssProperty.d.ts","sourceRoot":"","sources":["../src/cssProperty.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,QAAS,MAAM,SAAS,MAAM,KAAG,WAAW,GAAG,IAM5D,CAAC"}
|
package/esm/derivedColors.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type IThemePalette } from "@gooddata/sdk-model";
|
|
1
|
+
import { type IThemePalette, type ThemeColor } from "@gooddata/sdk-model";
|
|
2
2
|
import { type CssProperty } from "./cssProperty.js";
|
|
3
|
-
export declare const getHigherContrastColor: (amount: number, color:
|
|
4
|
-
export declare const getLowerContrastColor: (amount: number, color:
|
|
5
|
-
export declare const getLeastContrastColor: (color:
|
|
6
|
-
export declare const mixWith0ComplementaryColor: (amount: number, color:
|
|
7
|
-
export declare const mixWith8ComplementaryColor: (amount: number, color:
|
|
3
|
+
export declare const getHigherContrastColor: (amount: number, color: ThemeColor, isDarkTheme: boolean) => ThemeColor;
|
|
4
|
+
export declare const getLowerContrastColor: (amount: number, color: ThemeColor, isDarkTheme: boolean) => ThemeColor;
|
|
5
|
+
export declare const getLeastContrastColor: (color: ThemeColor, isDarkTheme: boolean) => ThemeColor;
|
|
6
|
+
export declare const mixWith0ComplementaryColor: (amount: number, color: ThemeColor, palette: IThemePalette) => ThemeColor;
|
|
7
|
+
export declare const mixWith8ComplementaryColor: (amount: number, color: ThemeColor, palette: IThemePalette) => ThemeColor;
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derivedColors.d.ts","sourceRoot":"","sources":["../src/derivedColors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"derivedColors.d.ts","sourceRoot":"","sources":["../src/derivedColors.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE1E,OAAO,EAAE,KAAK,WAAW,EAAkB,MAAM,kBAAkB,CAAC;AAMpE,eAAO,MAAM,sBAAsB,WAAY,MAAM,SAAS,UAAU,eAAe,OAAO,KAAG,UAClB,CAAC;AAEhF,eAAO,MAAM,qBAAqB,WAAY,MAAM,SAAS,UAAU,eAAe,OAAO,KAAG,UACjB,CAAC;AAEhF,eAAO,MAAM,qBAAqB,UAAW,UAAU,eAAe,OAAO,KAAG,UACrB,CAAC;AAE5D,eAAO,MAAM,0BAA0B,WAC3B,MAAM,SACP,UAAU,WACR,aAAa,KACvB,UAA4F,CAAC;AAEhG,eAAO,MAAM,0BAA0B,WAC3B,MAAM,SACP,UAAU,WACR,aAAa,KACvB,UAAsF,CAAC;AAqR1F;;GAEG;AACH,eAAO,MAAM,qBAAqB,YAAa,aAAa,eAAe,OAAO,KAAG,WAAW,EAiB/F,CAAC"}
|
|
@@ -328,7 +328,7 @@ export declare const useReferenceTheme: () => ITheme | undefined;
|
|
|
328
328
|
* @param theme - theme to use instead of context value. If undefined, the context value is used.
|
|
329
329
|
* @public
|
|
330
330
|
*/
|
|
331
|
-
export declare const useTheme: (theme?: ITheme
|
|
331
|
+
export declare const useTheme: (theme?: ITheme) => ITheme | undefined;
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
334
|
* Hook for reaching the themeIsLoading flag from context
|
|
@@ -66,22 +66,12 @@ const contentStyle = {
|
|
|
66
66
|
function ThemeVariablePreview({ variable }) {
|
|
67
67
|
switch (variable.type) {
|
|
68
68
|
case "theme":
|
|
69
|
-
return (_jsxs("div", { style: variablePreviewStyle, children: [
|
|
70
|
-
_jsx(ColorPreview, { color: variable.defaultValue ?? undefined }), _jsxs("div", { style: contentStyle, children: [
|
|
71
|
-
_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: variable.defaultValue ?? "No default value" }), _jsxs("div", { style: codeStyle, children: ["theme.", variable.themePath.join(".")] })
|
|
72
|
-
] })
|
|
73
|
-
] }));
|
|
69
|
+
return (_jsxs("div", { style: variablePreviewStyle, children: [_jsx(ColorPreview, { color: variable.defaultValue ?? undefined }), _jsxs("div", { style: contentStyle, children: [_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: variable.defaultValue ?? "No default value" }), _jsxs("div", { style: codeStyle, children: ["theme.", variable.themePath.join(".")] })] })] }));
|
|
74
70
|
case "derived":
|
|
75
71
|
case "internal":
|
|
76
|
-
return (_jsxs("div", { style: variablePreviewStyle, children: [
|
|
77
|
-
_jsx(ColorPreview, { color: variable.defaultValue ?? undefined }), _jsxs("div", { style: contentStyle, children: [
|
|
78
|
-
_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: variable.defaultValue ?? "No default value" })
|
|
79
|
-
] })
|
|
80
|
-
] }));
|
|
72
|
+
return (_jsxs("div", { style: variablePreviewStyle, children: [_jsx(ColorPreview, { color: variable.defaultValue ?? undefined }), _jsxs("div", { style: contentStyle, children: [_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: variable.defaultValue ?? "No default value" })] })] }));
|
|
81
73
|
case "inconsistent":
|
|
82
|
-
return (_jsx("div", { style: inconsistentVariablePreviewStyle, children: _jsxs("div", { style: contentStyle, children: [
|
|
83
|
-
_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: "Unique inconsistent usage colors:" }), _jsx("div", { style: inconsistentVariablePreviewColorsStyle, children: variable.inconsistentDefaults.map((d) => (_jsx(ColorPreview, { color: d }, d))) }), _jsx("div", { style: inconsistentVariablePreviewValuesStyle, children: variable.inconsistentDefaults.map((d) => (_jsx("div", { style: codeStyle, children: d }, d))) })
|
|
84
|
-
] }) }));
|
|
74
|
+
return (_jsx("div", { style: inconsistentVariablePreviewStyle, children: _jsxs("div", { style: contentStyle, children: [_jsx("div", { children: _jsxs("strong", { children: [variable.variableName, " (", variable.type, ")"] }) }), _jsx("div", { children: "Unique inconsistent usage colors:" }), _jsx("div", { style: inconsistentVariablePreviewColorsStyle, children: variable.inconsistentDefaults.map((d) => (_jsx(ColorPreview, { color: d }, d))) }), _jsx("div", { style: inconsistentVariablePreviewValuesStyle, children: variable.inconsistentDefaults.map((d) => (_jsx("div", { style: codeStyle, children: d }, d))) })] }) }));
|
|
85
75
|
case "deprecated":
|
|
86
76
|
return null;
|
|
87
77
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/sdk-ui-theme-provider",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.56.0-alpha.1",
|
|
4
4
|
"description": "GoodData SDK - Theme provider",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"postcss-value-parser": "4.2.0",
|
|
33
33
|
"ts-invariant": "0.10.3",
|
|
34
34
|
"tslib": "2.8.1",
|
|
35
|
-
"@gooddata/sdk-backend-spi": "11.
|
|
36
|
-
"@gooddata/sdk-model": "11.
|
|
37
|
-
"@gooddata/
|
|
38
|
-
"@gooddata/
|
|
35
|
+
"@gooddata/sdk-backend-spi": "11.56.0-alpha.1",
|
|
36
|
+
"@gooddata/sdk-model": "11.56.0-alpha.1",
|
|
37
|
+
"@gooddata/sdk-ui": "11.56.0-alpha.1",
|
|
38
|
+
"@gooddata/util": "11.56.0-alpha.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@microsoft/api-documenter": "7.30.10",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@types/react-dom": "19.1.7",
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "8.58.0",
|
|
51
51
|
"@typescript-eslint/parser": "8.58.0",
|
|
52
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
52
|
+
"@typescript/native-preview": "7.0.0-dev.20260501.1",
|
|
53
53
|
"dependency-cruiser": "17.3.10",
|
|
54
54
|
"eslint": "^9.39.2",
|
|
55
55
|
"eslint-plugin-headers": "1.3.3",
|
|
@@ -70,10 +70,10 @@
|
|
|
70
70
|
"react-dom": "19.1.1",
|
|
71
71
|
"typescript": "5.9.3",
|
|
72
72
|
"vitest": "4.1.8",
|
|
73
|
-
"@gooddata/
|
|
74
|
-
"@gooddata/
|
|
75
|
-
"@gooddata/
|
|
76
|
-
"@gooddata/
|
|
73
|
+
"@gooddata/eslint-config": "11.56.0-alpha.1",
|
|
74
|
+
"@gooddata/oxlint-config": "11.56.0-alpha.1",
|
|
75
|
+
"@gooddata/reference-workspace": "11.56.0-alpha.1",
|
|
76
|
+
"@gooddata/sdk-backend-mockingbird": "11.56.0-alpha.1"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0 || ^19.0.0",
|