@coinbase/cds-web 8.13.5 → 8.14.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.
@@ -19,15 +19,17 @@ export const useThemeProviderStyles = theme => {
19
19
  const ThemeManager = _ref => {
20
20
  let {
21
21
  display,
22
+ className,
23
+ style,
22
24
  children,
23
25
  theme
24
26
  } = _ref;
25
- const style = useThemeProviderStyles(theme);
26
- const styles = useMemo(() => _objectSpread(_objectSpread({}, style), {}, {
27
+ const themeStyles = useThemeProviderStyles(theme);
28
+ const styles = useMemo(() => _objectSpread(_objectSpread({}, themeStyles), {}, {
27
29
  display
28
- }), [style, display]);
30
+ }, style), [themeStyles, display, style]);
29
31
  return /*#__PURE__*/_jsx("div", {
30
- className: cx(theme.id, theme.activeColorScheme),
32
+ className: cx(theme.id, theme.activeColorScheme, className),
31
33
  style: styles,
32
34
  children: children
33
35
  });
@@ -37,7 +39,9 @@ export const ThemeProvider = _ref2 => {
37
39
  theme,
38
40
  activeColorScheme,
39
41
  children,
42
+ className,
40
43
  display,
44
+ style,
41
45
  motionFeatures
42
46
  } = _ref2;
43
47
  const themeApi = useMemo(() => {
@@ -62,7 +66,9 @@ export const ThemeProvider = _ref2 => {
62
66
  children: /*#__PURE__*/_jsx(ThemeContext.Provider, {
63
67
  value: themeApi,
64
68
  children: /*#__PURE__*/_jsx(ThemeManager, {
69
+ className: className,
65
70
  display: display,
71
+ style: style,
66
72
  theme: themeApi,
67
73
  children: children
68
74
  })
@@ -72,7 +78,10 @@ export const ThemeProvider = _ref2 => {
72
78
  /** Falls back to the currently active colorScheme if the inverse colors are not defined in the theme. */
73
79
  export const InvertedThemeProvider = _ref3 => {
74
80
  let {
75
- children
81
+ children,
82
+ display,
83
+ className,
84
+ style
76
85
  } = _ref3;
77
86
  const context = useContext(ThemeContext);
78
87
  if (!context) throw Error('InvertedThemeProvider must be used within a ThemeProvider');
@@ -81,6 +90,9 @@ export const InvertedThemeProvider = _ref3 => {
81
90
  const newColorScheme = context[inverseColorKey] ? inverseColorScheme : context.activeColorScheme;
82
91
  return /*#__PURE__*/_jsx(ThemeProvider, {
83
92
  activeColorScheme: newColorScheme,
93
+ className: className,
94
+ display: display,
95
+ style: style,
84
96
  theme: context,
85
97
  children: children
86
98
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cds-web",
3
- "version": "8.13.5",
3
+ "version": "8.14.0",
4
4
  "description": "Coinbase Design System - Web",
5
5
  "repository": {
6
6
  "type": "git",
@@ -147,11 +147,11 @@
147
147
  "react-dom": "^18.3.1"
148
148
  },
149
149
  "dependencies": {
150
- "@coinbase/cds-common": "^8.13.5",
151
- "@coinbase/cds-icons": "^5.4.1",
152
- "@coinbase/cds-illustrations": "^4.23.0",
153
- "@coinbase/cds-lottie-files": "^3.3.1",
154
- "@coinbase/cds-utils": "^2.3.2",
150
+ "@coinbase/cds-common": "^8.14.0",
151
+ "@coinbase/cds-icons": "^5.4.2",
152
+ "@coinbase/cds-illustrations": "^4.23.1",
153
+ "@coinbase/cds-lottie-files": "^3.3.2",
154
+ "@coinbase/cds-utils": "^2.3.3",
155
155
  "@floating-ui/react-dom": "^2.1.1",
156
156
  "@popperjs/core": "^2.9.0",
157
157
  "@react-spring/web": "^9.7.4",