@telicent-oss/ds 0.25.0 → 0.25.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/dist/ds.js +725 -46
- package/dist/ds.umd.cjs +725 -46
- package/dist/logout-syncer/sw.js +1 -1
- package/dist/src/component-library/Map/FeatureMap.d.ts +2 -1
- package/dist/src/component-library/Map/FeatureMap.stories.d.ts +2 -2
- package/dist/src/v1/theme/colors/palette/createDarkPalette.d.ts +5 -0
- package/dist/src/v1/theme/colors/palette/createLightPalette.d.ts +5 -0
- package/dist/src/v1/theme/colors/theme-colors.d.ts +14 -63
- package/dist/src/v1/theme/createTheme.d.ts +8 -0
- package/dist/src/v1/theme/createTheme.test.d.ts +1 -0
- package/package.json +5 -4
- package/dist/src/v1/theme/dark-palette.d.ts +0 -5
- package/dist/src/v1/theme/light-palette.d.ts +0 -5
- package/dist/src/v1/theme/theme.d.ts +0 -6
package/dist/logout-syncer/sw.js
CHANGED
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { FeatureCollection } from 'geojson';
|
|
3
3
|
import { StyleOption, ClassIcon } from './utils/schema';
|
|
4
4
|
import { ResultMarker } from './ResultsMarkers';
|
|
5
|
+
import { UITheme } from '../../export';
|
|
5
6
|
|
|
6
7
|
export declare const GEOJSON = "geojson";
|
|
7
8
|
export declare const FEATURE_COLLECTION = "FeatureCollection";
|
|
@@ -22,7 +23,7 @@ export interface FeatureMapProps {
|
|
|
22
23
|
selected: string[];
|
|
23
24
|
onClickMarker?: (marker: ResultMarker) => void;
|
|
24
25
|
findByClassUri: (maybeClassUri: string) => ClassIcon;
|
|
25
|
-
theme?:
|
|
26
|
+
theme?: UITheme;
|
|
26
27
|
defaultStyle?: string;
|
|
27
28
|
attributionControl?: boolean;
|
|
28
29
|
}
|
|
@@ -25,7 +25,7 @@ declare const meta: {
|
|
|
25
25
|
argTypes: {
|
|
26
26
|
theme: {
|
|
27
27
|
control: "select";
|
|
28
|
-
options:
|
|
28
|
+
options: ["DataNavy", "DocumentPink", "GraphOrange", "AdminBlue", "Blank"];
|
|
29
29
|
description: string;
|
|
30
30
|
};
|
|
31
31
|
selected: {
|
|
@@ -61,7 +61,7 @@ declare const meta: {
|
|
|
61
61
|
selected: string[];
|
|
62
62
|
onClickMarker?: ((marker: ResultMarker) => void) | undefined;
|
|
63
63
|
findByClassUri: (maybeClassUri: string) => import('./utils/schema').ClassIcon;
|
|
64
|
-
theme?: (
|
|
64
|
+
theme?: import('../../export').UITheme | undefined;
|
|
65
65
|
defaultStyle?: string | undefined;
|
|
66
66
|
attributionControl?: boolean | undefined;
|
|
67
67
|
}>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,67 +1,18 @@
|
|
|
1
1
|
import { default as zod } from 'zod';
|
|
2
2
|
|
|
3
|
-
export declare const UIThemeSchema: zod.ZodEnum<["
|
|
3
|
+
export declare const UIThemeSchema: zod.ZodEnum<["DataNavy", "DocumentPink", "GraphOrange", "AdminBlue", "Blank"]>;
|
|
4
4
|
export type UITheme = zod.infer<typeof UIThemeSchema>;
|
|
5
|
-
declare const THEME_COLORS: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
light: {
|
|
19
|
-
main: "#fff";
|
|
20
|
-
light: string;
|
|
21
|
-
dark: string;
|
|
22
|
-
contrastText: "#000";
|
|
23
|
-
};
|
|
24
|
-
dark: {
|
|
25
|
-
main: "#fff";
|
|
26
|
-
light: string;
|
|
27
|
-
dark: string;
|
|
28
|
-
contrastText: "#fff";
|
|
29
|
-
};
|
|
30
|
-
DocumentPink: {
|
|
31
|
-
main: string;
|
|
32
|
-
light: string;
|
|
33
|
-
dark: string;
|
|
34
|
-
contrastText: "#000";
|
|
35
|
-
50: string;
|
|
36
|
-
100: string;
|
|
37
|
-
200: string;
|
|
38
|
-
400: string;
|
|
39
|
-
500: string;
|
|
40
|
-
600: string;
|
|
41
|
-
};
|
|
42
|
-
GraphOrange: {
|
|
43
|
-
main: string;
|
|
44
|
-
light: string;
|
|
45
|
-
dark: string;
|
|
46
|
-
contrastText: "#000";
|
|
47
|
-
50: string;
|
|
48
|
-
100: string;
|
|
49
|
-
200: string;
|
|
50
|
-
400: string;
|
|
51
|
-
500: string;
|
|
52
|
-
600: string;
|
|
53
|
-
};
|
|
54
|
-
AdminBlue: {
|
|
55
|
-
main: string;
|
|
56
|
-
light: string;
|
|
57
|
-
dark: string;
|
|
58
|
-
contrastText: "#000";
|
|
59
|
-
50: string;
|
|
60
|
-
100: string;
|
|
61
|
-
200: string;
|
|
62
|
-
400: string;
|
|
63
|
-
500: string;
|
|
64
|
-
600: string;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
5
|
+
declare const THEME_COLORS: Record<UITheme, Partial<{
|
|
6
|
+
50: string;
|
|
7
|
+
100: string;
|
|
8
|
+
200: string;
|
|
9
|
+
400: string;
|
|
10
|
+
500: string;
|
|
11
|
+
600: string;
|
|
12
|
+
}> & {
|
|
13
|
+
main: string;
|
|
14
|
+
light: string;
|
|
15
|
+
dark: string;
|
|
16
|
+
contrastText: string;
|
|
17
|
+
}>;
|
|
67
18
|
export default THEME_COLORS;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
import { UITheme } from './colors/theme-colors';
|
|
3
|
+
import { default as generateComponentOverrides } from './style-overrides/components';
|
|
4
|
+
|
|
5
|
+
export type ComponentOverrides = ReturnType<typeof generateComponentOverrides>;
|
|
6
|
+
export declare const createThemePure: (uiTheme: UITheme, palette: ThemeOptions["palette"]) => import('@mui/material/styles').Theme;
|
|
7
|
+
export declare const createTheme: (uiTheme: UITheme, dark: boolean, skipCache?: boolean) => import('@mui/material/styles').Theme;
|
|
8
|
+
export default createTheme;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"url": "https://github.com/telicent-oss/telicent-ds.git"
|
|
8
8
|
},
|
|
9
9
|
"type": "module",
|
|
10
|
-
"version": "0.25.
|
|
10
|
+
"version": "0.25.1",
|
|
11
11
|
"private": false,
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@emotion/react": "^11.10.6",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@mui/x-tree-view": "7.3.1",
|
|
22
22
|
"@react-spring/web": "9.7.3",
|
|
23
23
|
"@tanstack/react-query": "^5.18.0",
|
|
24
|
-
"@telicent-oss/ontology-icon-lib": "0.3.0",
|
|
25
24
|
"@telicent-oss/ontologyservice": "0.31.3-TELFE654.0",
|
|
26
25
|
"@telicent-oss/react-lib": "^0.5.0",
|
|
27
26
|
"@telicent-oss/telicent-frontend-cli": "^1.2.1",
|
|
28
27
|
"classnames": "^2.3.1",
|
|
29
28
|
"d3": "^7.8.2",
|
|
30
29
|
"lodash": "^4.17.21",
|
|
30
|
+
"lodash.merge": "^4.6.2",
|
|
31
31
|
"maplibre-gl": "^3.5.0",
|
|
32
32
|
"react": "18.2.0",
|
|
33
33
|
"react-dom": "18.2.0",
|
|
@@ -75,7 +75,6 @@
|
|
|
75
75
|
"prepare": "husky install"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@telicent-oss/ontology-icon-lib": "*",
|
|
79
78
|
"react": "*",
|
|
80
79
|
"react-dom": "*"
|
|
81
80
|
},
|
|
@@ -114,6 +113,7 @@
|
|
|
114
113
|
"@types/geojson": "^7946.0.16",
|
|
115
114
|
"@types/jest": "^29.5.0",
|
|
116
115
|
"@types/lodash": "^4.17.13",
|
|
116
|
+
"@types/lodash.merge": "^4.6.9",
|
|
117
117
|
"@types/node": "^18.15.11",
|
|
118
118
|
"@types/react": "^18.0.32",
|
|
119
119
|
"@types/react-dom": "^18.0.11",
|
|
@@ -126,6 +126,7 @@
|
|
|
126
126
|
"commitizen": "4.2.5",
|
|
127
127
|
"cssnano": "^5.0.14",
|
|
128
128
|
"cz-conventional-changelog": "^3.3.0",
|
|
129
|
+
"diff": "^8.0.2",
|
|
129
130
|
"eslint": "^9.15.0",
|
|
130
131
|
"eslint-config-airbnb": "^19.0.4",
|
|
131
132
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
@@ -227,4 +228,4 @@
|
|
|
227
228
|
}
|
|
228
229
|
},
|
|
229
230
|
"color": "#FF9999"
|
|
230
|
-
}
|
|
231
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { UITheme } from './colors/theme-colors';
|
|
2
|
-
import { default as generateComponentOverrides } from './style-overrides/components';
|
|
3
|
-
|
|
4
|
-
export type ComponentOverrides = ReturnType<typeof generateComponentOverrides>;
|
|
5
|
-
declare const createTheme: (themeColor: UITheme, dark: boolean) => import('@mui/material/styles').Theme;
|
|
6
|
-
export default createTheme;
|