@open-pioneer/base-theme 0.3.0 → 0.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @open-pioneer/base-theme
2
2
 
3
+ ## 0.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - be236af: Remove unused button variants and color scheme from base-theme.
8
+ - 5ff8f30: Update package.json metadata.
9
+ - Updated dependencies [5ff8f30]
10
+ - @open-pioneer/chakra-integration@1.1.2
11
+
3
12
  ## 0.3.0
4
13
 
5
14
  ### Minor Changes
package/README.md CHANGED
@@ -1,77 +1,17 @@
1
1
  # @open-pioneer/base-theme
2
2
 
3
- This package provides a theme that uses the "trails" color scheme.
3
+ This package provides the default theme for all open pioneer trails applications.
4
4
 
5
5
  ## Usage
6
6
 
7
7
  This theme is automatically used as the default theme for all open pioneer trails applications.
8
+ When using this theme, the `trails` color scheme becomes the default color scheme for all Chakra UI components.
8
9
 
9
- ### How to override the `trails` color scheme
10
+ ### How to override the theme
10
11
 
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
- });
65
- ```
66
-
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`
12
+ It is possible to override the theme by implementing an own theme extension.
13
+ In particular, it is possible to override the `trails` color scheme.
14
+ For an explanation how to override the theme, refer to ["How to theme an app" Tutorial](https://github.com/open-pioneer/trails-starter/blob/main/docs/tutorials/HowToThemeAnApp.md).
75
15
 
76
16
  ## License
77
17
 
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@open-pioneer/base-theme",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
+ "description": "This package provides the default theme for all open pioneer trails applications.",
6
+ "keywords": [
7
+ "open-pioneer-trails"
8
+ ],
9
+ "homepage": "https://github.com/open-pioneer",
5
10
  "license": "Apache-2.0",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/open-pioneer/trails-core-packages",
14
+ "directory": "src/packages/base-theme"
15
+ },
6
16
  "peerDependencies": {
7
- "@open-pioneer/chakra-integration": "^1.1.1"
17
+ "@open-pioneer/chakra-integration": "^1.1.2"
8
18
  },
9
19
  "exports": {
10
20
  "./package.json": "./package.json",
package/theme.js CHANGED
@@ -17,19 +17,6 @@ const colors = {
17
17
  700: "#1b4b5f",
18
18
  800: "#123240",
19
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
20
  }
34
21
  };
35
22
  const semanticTokens = {
@@ -89,39 +76,6 @@ const theme = extendTheme(
89
76
  //colorScheme: "gray"
90
77
  //size: "md", //"lg" | "md" | "sm" | "xs"
91
78
  //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
79
  }
126
80
  },
127
81
  Checkbox: {
package/theme.js.map CHANGED
@@ -1 +1 @@
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,IACJ,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,GACT;AAAA;AAAA,EAEA,UAAY,EAAA;AAAA,IACR,EAAI,EAAA,SAAA;AAAA,IACJ,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,GACT;AACJ,CAAA,CAAA;AAEA,MAAM,cAAiB,GAAA;AAAA,EACnB,MAAQ,EAAA;AAAA,IACJ,iBAAmB,EAAA,OAAA;AAAA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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};\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 },\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,IACJ,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,IACL,GAAK,EAAA,SAAA;AAAA,GACT;AACJ,CAAA,CAAA;AAEA,MAAM,cAAiB,GAAA;AAAA,EACnB,MAAQ,EAAA;AAAA,IACJ,iBAAmB,EAAA,OAAA;AAAA,IACnB,oBAAsB,EAAA,YAAA;AAAA,IACtB,kBAAoB,EAAA,WAAA;AAAA;AAAA,IAEpB,aAAe,EAAA,UAAA;AAAA,IACf,cAAgB,EAAA,OAAA;AAAA;AAAA,IAEhB,cAAgB,EAAA,OAAA;AAAA,IAChB,WAAa,EAAA,YAAA;AAAA,IACb,QAAU,EAAA,UAAA;AAAA;AAAA;AAAA,IAIV,kBAAoB,EAAA,cAAA;AAAA,IACpB,gBAAkB,EAAA,iBAAA;AAAA,IAClB,qBAAuB,EAAA,QAAA;AAAA,IACvB,0BAA4B,EAAA,aAAA;AAAA;AAAA;AAAA;AAAA,GAIhC;AACJ,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