@open-pioneer/base-theme 0.1.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @open-pioneer/base-theme
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6380aa4: Merge developments from @open-pioneer/theme.
8
+ This package now provides the `"trails"` color scheme, among other things.
9
+
10
+ ## 0.2.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 6f954e3: Compatibility with @open-pioneer/runtime@^2
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [f5c0e31]
19
+ - @open-pioneer/chakra-integration@1.1.1
20
+
3
21
  ## 0.1.0
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -1,10 +1,78 @@
1
1
  # @open-pioneer/base-theme
2
2
 
3
- Provides the default open pioneer trails chakra theme.
3
+ This package provides a theme that uses the "trails" color scheme.
4
4
 
5
- ```js
6
- import { theme as baseTheme } from "@open-pioneer/base-theme";
5
+ ## Usage
6
+
7
+ This theme is automatically used as the default theme for all open pioneer trails applications.
8
+
9
+ ### How to override the `trails` color scheme
10
+
11
+ Import the `extendTheme` helper function:
12
+
13
+ ```jsx
14
+ import { extendTheme } from "@open-pioneer/chakra-integration";
15
+ ```
16
+
17
+ Define your custom `trails` (or `trails_alt`) colors:
18
+
19
+ ```jsx
20
+ const colors = {
21
+ trails: {
22
+ 50: "#f5edfd",
23
+ 100: "#eedcff",
24
+ 200: "#d6c2ea",
25
+ 300: "#bfa8d5",
26
+ 400: "#a890c1",
27
+ 500: "#9177ad",
28
+ 600: "#7b609a",
29
+ 700: "#654986",
30
+ 800: "#4f3373",
31
+ 900: "#391e61"
32
+ }
33
+ };
34
+ ```
35
+
36
+ Use `extendTheme` function to override the `trails` colors:
37
+
38
+ ```jsx
39
+ import { theme } from "@open-pioneer/base-theme";
40
+ const customTheme = extendTheme({ colors }, theme);
41
+ ```
42
+
43
+ Or use Chakra UI color schemes to override the `trails` (or `trails_alt`) colors:
44
+
45
+ ```jsx
46
+ const customTheme = extendTheme(
47
+ {
48
+ colors: {
49
+ trails: theme.colors.gray
50
+ }
51
+ },
52
+ theme
53
+ );
54
+ ```
55
+
56
+ `options: gray | red | orange | yellow | green | teal | blue | cyan | purple | pink`
57
+
58
+ Then pass in the custom theme in `createCustomElement`:
59
+
60
+ ```jsx
61
+ createCustomElement({
62
+ ...,
63
+ theme: customTheme
64
+ });
7
65
  ```
8
66
 
9
- > NOTE: This package is still under active development.
10
- > There will be breaking changes.
67
+ ### How to use button variants
68
+
69
+ ```jsx
70
+ <Button variant="secondary">secondary</Button>
71
+ ```
72
+
73
+ `options: solid | outline | ghost | link | primary | secondary | cancel`
74
+ `default: solid`
75
+
76
+ ## License
77
+
78
+ Apache-2.0 (see `LICENSE` file)
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/base-theme",
4
- "version": "0.1.0",
4
+ "version": "0.3.0",
5
5
  "license": "Apache-2.0",
6
6
  "peerDependencies": {
7
- "@open-pioneer/chakra-integration": "^1.1.0"
7
+ "@open-pioneer/chakra-integration": "^1.1.1"
8
8
  },
9
9
  "exports": {
10
10
  "./package.json": "./package.json",
package/theme.d.ts CHANGED
@@ -11,9 +11,5 @@
11
11
  * // Your overrides
12
12
  * }, baseTheme);
13
13
  * ```
14
- *
15
- * NOTE: this API is still _experimental_.
16
- *
17
- * @experimental
18
14
  */
19
15
  export declare const theme: Record<string, any>;
package/theme.js CHANGED
@@ -1,6 +1,303 @@
1
- import { extendTheme } from '@open-pioneer/chakra-integration';
1
+ import { extendTheme, theme as theme$1, withDefaultColorScheme } from '@open-pioneer/chakra-integration';
2
2
 
3
- const theme = extendTheme({});
3
+ const fonts = {
4
+ /* heading: "Tahoma",
5
+ body: "Courier New" */
6
+ };
7
+ const colors = {
8
+ //trails = default color scheme
9
+ trails: {
10
+ 50: "#eaf2f5",
11
+ 100: "#d5e5ec",
12
+ 200: "#abcbd9",
13
+ 300: "#81b1c5",
14
+ 400: "#5797b2",
15
+ 500: "#2d7d9f",
16
+ 600: "#24647f",
17
+ 700: "#1b4b5f",
18
+ 800: "#123240",
19
+ 900: "#091920"
20
+ },
21
+ //trails_alt = currently only used for: <Button variant="secondary">secondary</Button>
22
+ trails_alt: {
23
+ 50: "#eaf3e9",
24
+ 100: "#d5e7d2",
25
+ 200: "#abcea5",
26
+ 300: "#80b678",
27
+ 400: "#569d4b",
28
+ 500: "#2c851e",
29
+ 600: "#236a18",
30
+ 700: "#1a5012",
31
+ 800: "#12350c",
32
+ 900: "#091b06"
33
+ }
34
+ };
35
+ const semanticTokens = {
36
+ colors: {
37
+ "background_body": "white",
38
+ "background_primary": "trails.500",
39
+ "background_light": "trails.50",
40
+ //"background_secondary": "trails.700",
41
+ "placeholder": "gray.500",
42
+ "font_primary": "black",
43
+ //"font_secondary": "gray.500",
44
+ "font_inverse": "white",
45
+ "font_link": "trails.600",
46
+ "border": "gray.300",
47
+ //override internal chakra theming variables
48
+ //https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/theme/src/semantic-tokens.ts
49
+ "chakra-body-text": "font_primary",
50
+ "chakra-body-bg": "background_body",
51
+ "chakra-border-color": "border",
52
+ "chakra-placeholder-color": "placeholder"
53
+ //"chakra-inverse-text": "font_inverse",
54
+ //"chakra-subtle-bg": "background_secondary",
55
+ //"chakra-subtle-text": "font_secondary"
56
+ }
57
+ };
58
+ const intermediateTheme = extendTheme({ fonts, colors, semanticTokens }, theme$1);
59
+ const getColor = (semanticToken, theme2) => {
60
+ const color = theme2.semanticTokens.colors[semanticToken];
61
+ if (color && color.includes(".")) {
62
+ const kvp = color.split(".");
63
+ const key = kvp[0], value = kvp[1];
64
+ return theme2.colors[key][value];
65
+ }
66
+ return color;
67
+ };
68
+ const theme = extendTheme(
69
+ withDefaultColorScheme({ colorScheme: "trails" }),
70
+ {
71
+ styles: {
72
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
73
+ global({ theme: theme2 }) {
74
+ return {
75
+ ".chakra-host": {
76
+ //TODO: Hack! Additional Hex digits only work because colors are hex, too
77
+ //opacity-to-hex: 0.6 => 99
78
+ "--trails-theme-shadow-color": `${getColor("background_primary", theme2)}99`
79
+ }
80
+ };
81
+ }
82
+ },
83
+ shadows: {
84
+ outline: `0 0 0 3px var(--trails-theme-shadow-color)`
85
+ },
86
+ components: {
87
+ Button: {
88
+ defaultProps: {
89
+ //colorScheme: "gray"
90
+ //size: "md", //"lg" | "md" | "sm" | "xs"
91
+ //variant: "solid" //"primary" | "secondary" | "cancel" | "solid" | "outline" | "ghost" | "link"
92
+ },
93
+ variants: {
94
+ //primary === default
95
+ primary: {
96
+ color: "font_inverse",
97
+ bg: "trails.500",
98
+ _hover: {
99
+ bg: "trails.600"
100
+ },
101
+ _active: {
102
+ bg: "trails.700"
103
+ }
104
+ },
105
+ secondary: {
106
+ color: "font_inverse",
107
+ bg: "trails_alt.500",
108
+ _hover: {
109
+ bg: "trails_alt.600"
110
+ },
111
+ _active: {
112
+ bg: "trails_alt.700"
113
+ }
114
+ },
115
+ cancel: {
116
+ color: "font_inverse",
117
+ bg: "gray.500",
118
+ _hover: {
119
+ bg: "gray.600"
120
+ },
121
+ _active: {
122
+ bg: "gray.700"
123
+ }
124
+ }
125
+ }
126
+ },
127
+ Checkbox: {
128
+ defaultProps: {
129
+ //colorScheme: "blue"
130
+ //size: "md" //"lg" | "md" | "sm"
131
+ }
132
+ },
133
+ Divider: {
134
+ baseStyle: {
135
+ borderColor: "background_primary"
136
+ }
137
+ },
138
+ Input: {
139
+ defaultProps: {
140
+ //size: "md" //"lg" | "md" | "sm" | "xs"
141
+ //variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
142
+ },
143
+ variants: {
144
+ outline({ theme: theme2 }) {
145
+ return {
146
+ field: {
147
+ borderColor: "border",
148
+ _focusVisible: {
149
+ borderColor: "background_primary",
150
+ boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
151
+ }
152
+ },
153
+ addon: {
154
+ borderColor: "border",
155
+ bg: "background_primary"
156
+ }
157
+ };
158
+ },
159
+ filled: {
160
+ field: {
161
+ _focusVisible: {
162
+ borderColor: "background_primary"
163
+ }
164
+ },
165
+ addon: {
166
+ bg: "background_primary"
167
+ }
168
+ },
169
+ flushed({ theme: theme2 }) {
170
+ return {
171
+ field: {
172
+ _focusVisible: {
173
+ borderColor: "background_primary",
174
+ boxShadow: `0px 1px 0px 0px ${getColor(
175
+ "background_primary",
176
+ theme2
177
+ )}`
178
+ }
179
+ }
180
+ };
181
+ }
182
+ }
183
+ },
184
+ Link: {
185
+ baseStyle: {
186
+ color: "font_link"
187
+ }
188
+ },
189
+ Radio: {
190
+ defaultProps: {
191
+ //colorScheme: "blue",
192
+ //size: "md" //"lg" | "md" | "sm"
193
+ }
194
+ },
195
+ Select: {
196
+ defaultProps: {
197
+ //size: "md" //"lg" | "md" | "sm" | "xs"
198
+ //variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
199
+ },
200
+ variants: {
201
+ outline({ theme: theme2 }) {
202
+ return {
203
+ field: {
204
+ borderColor: "border",
205
+ _focusVisible: {
206
+ borderColor: "background_primary",
207
+ boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
208
+ }
209
+ }
210
+ };
211
+ },
212
+ filled: {
213
+ field: {
214
+ _focusVisible: {
215
+ borderColor: "background_primary"
216
+ }
217
+ },
218
+ addon: {
219
+ bg: "background_primary"
220
+ }
221
+ },
222
+ flushed({ theme: theme2 }) {
223
+ return {
224
+ field: {
225
+ _focusVisible: {
226
+ borderColor: "background_primary",
227
+ boxShadow: `0px 1px 0px 0px ${getColor(
228
+ "background_primary",
229
+ theme2
230
+ )}`
231
+ }
232
+ }
233
+ };
234
+ }
235
+ }
236
+ },
237
+ Slider: {
238
+ defaultProps: {
239
+ //colorScheme: "blue"
240
+ //size: "md" //"lg" | "md" | "sm"
241
+ },
242
+ baseStyle: {
243
+ thumb: {
244
+ borderColor: "background_primary",
245
+ _hover: {
246
+ bg: "background_primary"
247
+ }
248
+ }
249
+ }
250
+ },
251
+ Switch: {
252
+ defaultProps: {
253
+ //colorScheme: "blue",
254
+ //size: "md" //"lg" | "md" | "sm"
255
+ }
256
+ },
257
+ Textarea: {
258
+ defaultProps: {
259
+ //size: "md", //"lg" | "md" | "sm" | "xs"
260
+ //variant: "outline" //"outline" | "filled" | "flushed" | "unstyled"
261
+ },
262
+ variants: {
263
+ outline({ theme: theme2 }) {
264
+ return {
265
+ borderColor: "border",
266
+ _focusVisible: {
267
+ borderColor: "background_primary",
268
+ boxShadow: `0 0 0 1px ${getColor("background_primary", theme2)}`
269
+ }
270
+ };
271
+ },
272
+ filled: {
273
+ _focusVisible: {
274
+ borderColor: "background_primary"
275
+ }
276
+ },
277
+ flushed({ theme: theme2 }) {
278
+ return {
279
+ _focusVisible: {
280
+ borderColor: "background_primary",
281
+ boxShadow: `0px 1px 0px 0px ${getColor(
282
+ "background_primary",
283
+ theme2
284
+ )}`
285
+ }
286
+ };
287
+ }
288
+ }
289
+ },
290
+ Tooltip: {
291
+ baseStyle: {
292
+ //bg: "background_primary",
293
+ //color: "font_inverse",
294
+ borderRadius: "md"
295
+ }
296
+ }
297
+ }
298
+ },
299
+ intermediateTheme
300
+ );
4
301
 
5
302
  export { theme };
6
303
  //# sourceMappingURL=theme.js.map
package/theme.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sources":["theme.ts"],"sourcesContent":["// SPDX-FileCopyrightText: con terra GmbH and contributors\n// SPDX-License-Identifier: Apache-2.0\nimport { extendTheme } from \"@open-pioneer/chakra-integration\";\n\n/**\n * Base theme for open pioneer trails applications.\n *\n * All custom themes should extend this theme:\n *\n * ```ts\n * import { extendTheme } from \"@open-pioneer/chakra-integration\";\n * import { theme as baseTheme } from \"@open-pioneer/base-theme\";\n *\n * export const theme = extendTheme({\n * // Your overrides\n * }, baseTheme);\n * ```\n *\n * NOTE: this API is still _experimental_.\n *\n * @experimental\n */\nexport const theme = extendTheme({});\n"],"names":[],"mappings":";;AAsBa,MAAA,KAAA,GAAQ,WAAY,CAAA,EAAE;;;;"}
1
+ {"version":3,"file":"theme.js","sources":["theme.ts"],"sourcesContent":["// SPDX-FileCopyrightText: 2023 Open Pioneer project (https://github.com/open-pioneer)\n// SPDX-License-Identifier: Apache-2.0\nimport {\n StyleFunctionProps,\n extendTheme,\n withDefaultColorScheme,\n theme as baseTheme\n} from \"@open-pioneer/chakra-integration\";\n\nconst fonts = {\n /* heading: \"Tahoma\",\n body: \"Courier New\" */\n};\n\n//10 colors as hex values from 50 to 900 (light to dark)\nconst colors = {\n //trails = default color scheme\n trails: {\n 50: \"#eaf2f5\",\n 100: \"#d5e5ec\",\n 200: \"#abcbd9\",\n 300: \"#81b1c5\",\n 400: \"#5797b2\",\n 500: \"#2d7d9f\",\n 600: \"#24647f\",\n 700: \"#1b4b5f\",\n 800: \"#123240\",\n 900: \"#091920\"\n },\n //trails_alt = currently only used for: <Button variant=\"secondary\">secondary</Button>\n trails_alt: {\n 50: \"#eaf3e9\",\n 100: \"#d5e7d2\",\n 200: \"#abcea5\",\n 300: \"#80b678\",\n 400: \"#569d4b\",\n 500: \"#2c851e\",\n 600: \"#236a18\",\n 700: \"#1a5012\",\n 800: \"#12350c\",\n 900: \"#091b06\"\n }\n};\n\nconst semanticTokens = {\n colors: {\n \"background_body\": \"white\",\n \"background_primary\": \"trails.500\",\n \"background_light\": \"trails.50\",\n //\"background_secondary\": \"trails.700\",\n \"placeholder\": \"gray.500\",\n \"font_primary\": \"black\",\n //\"font_secondary\": \"gray.500\",\n \"font_inverse\": \"white\",\n \"font_link\": \"trails.600\",\n \"border\": \"gray.300\",\n\n //override internal chakra theming variables\n //https://github.com/chakra-ui/chakra-ui/blob/main/packages/components/theme/src/semantic-tokens.ts\n \"chakra-body-text\": \"font_primary\",\n \"chakra-body-bg\": \"background_body\",\n \"chakra-border-color\": \"border\",\n \"chakra-placeholder-color\": \"placeholder\"\n //\"chakra-inverse-text\": \"font_inverse\",\n //\"chakra-subtle-bg\": \"background_secondary\",\n //\"chakra-subtle-text\": \"font_secondary\"\n }\n};\n\n//Create an intermediate theme to have access to all colors and semantic tokens (function: getColor)\nconst intermediateTheme = extendTheme({ fonts, colors, semanticTokens }, baseTheme);\n\n//Get the color defined by a semantic token.\n//If it points to a color (e.g. red.500), get the hex color value out of the color scheme.\n//Overrides: \"boxShadow\" and \"outline\"\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst getColor = (semanticToken: string, theme: any) => {\n const color = theme.semanticTokens.colors[semanticToken];\n if (color && color.includes(\".\")) {\n const kvp = color.split(\".\");\n const key = kvp[0],\n value = kvp[1];\n return theme.colors[key][value];\n }\n return color;\n};\n\n/**\n * Base theme for open pioneer trails applications.\n *\n * All custom themes should extend this theme:\n *\n * ```ts\n * import { extendTheme } from \"@open-pioneer/chakra-integration\";\n * import { theme as baseTheme } from \"@open-pioneer/base-theme\";\n *\n * export const theme = extendTheme({\n * // Your overrides\n * }, baseTheme);\n * ```\n */\nexport const theme = extendTheme(\n withDefaultColorScheme({ colorScheme: \"trails\" }),\n {\n styles: {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n global({ theme }: any) {\n return {\n \".chakra-host\": {\n //TODO: Hack! Additional Hex digits only work because colors are hex, too\n //opacity-to-hex: 0.6 => 99\n \"--trails-theme-shadow-color\": `${getColor(\"background_primary\", theme)}99`\n }\n };\n }\n },\n shadows: {\n outline: `0 0 0 3px var(--trails-theme-shadow-color)`\n },\n components: {\n Button: {\n defaultProps: {\n //colorScheme: \"gray\"\n //size: \"md\", //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"solid\" //\"primary\" | \"secondary\" | \"cancel\" | \"solid\" | \"outline\" | \"ghost\" | \"link\"\n },\n variants: {\n //primary === default\n primary: {\n color: \"font_inverse\",\n bg: \"trails.500\",\n _hover: {\n bg: \"trails.600\"\n },\n _active: {\n bg: \"trails.700\"\n }\n },\n secondary: {\n color: \"font_inverse\",\n bg: \"trails_alt.500\",\n _hover: {\n bg: \"trails_alt.600\"\n },\n _active: {\n bg: \"trails_alt.700\"\n }\n },\n cancel: {\n color: \"font_inverse\",\n bg: \"gray.500\",\n _hover: {\n bg: \"gray.600\"\n },\n _active: {\n bg: \"gray.700\"\n }\n }\n }\n },\n Checkbox: {\n defaultProps: {\n //colorScheme: \"blue\"\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Divider: {\n baseStyle: {\n borderColor: \"background_primary\"\n }\n },\n Input: {\n defaultProps: {\n //size: \"md\" //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n field: {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n },\n addon: {\n borderColor: \"border\",\n bg: \"background_primary\"\n }\n };\n },\n filled: {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n addon: {\n bg: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n }\n };\n }\n }\n },\n Link: {\n baseStyle: {\n color: \"font_link\"\n }\n },\n Radio: {\n defaultProps: {\n //colorScheme: \"blue\",\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Select: {\n defaultProps: {\n //size: \"md\" //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n field: {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n }\n };\n },\n filled: {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n addon: {\n bg: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n field: {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n }\n };\n }\n }\n },\n Slider: {\n defaultProps: {\n //colorScheme: \"blue\"\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n },\n baseStyle: {\n thumb: {\n borderColor: \"background_primary\",\n _hover: {\n bg: \"background_primary\"\n }\n }\n }\n },\n Switch: {\n defaultProps: {\n //colorScheme: \"blue\",\n //size: \"md\" //\"lg\" | \"md\" | \"sm\"\n }\n },\n Textarea: {\n defaultProps: {\n //size: \"md\", //\"lg\" | \"md\" | \"sm\" | \"xs\"\n //variant: \"outline\" //\"outline\" | \"filled\" | \"flushed\" | \"unstyled\"\n },\n variants: {\n outline({ theme }: StyleFunctionProps) {\n return {\n borderColor: \"border\",\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0 0 0 1px ${getColor(\"background_primary\", theme)}`\n }\n };\n },\n filled: {\n _focusVisible: {\n borderColor: \"background_primary\"\n }\n },\n flushed({ theme }: StyleFunctionProps) {\n return {\n _focusVisible: {\n borderColor: \"background_primary\",\n boxShadow: `0px 1px 0px 0px ${getColor(\n \"background_primary\",\n theme\n )}`\n }\n };\n }\n }\n },\n Tooltip: {\n baseStyle: {\n //bg: \"background_primary\",\n //color: \"font_inverse\",\n borderRadius: \"md\"\n }\n }\n }\n },\n intermediateTheme\n);\n"],"names":["baseTheme","theme"],"mappings":";;AASA,MAAM,KAAQ,GAAA;AAAA;AAAA;AAGd,CAAA,CAAA;AAGA,MAAM,MAAS,GAAA;AAAA;AAAA,EAEX,MAAQ,EAAA;AAAA,IACJ,EAAI,EAAA,SAAA;AAAA,I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