uikit-react-public 0.36.0 → 0.36.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/index.js CHANGED
@@ -17390,7 +17390,7 @@ const {
17390
17390
  html,
17391
17391
  body,
17392
17392
  #root {
17393
- background-color: ${e.colour.bg.brand};
17393
+ background-color: ${e.colour.bg.default};
17394
17394
  color: ${e.colour.text.default};
17395
17395
  }
17396
17396
  `, Ex = ({ children: e, theme: t, initialTheme: o }) => {
@@ -20442,7 +20442,7 @@ const Rv = (e, t) => {
20442
20442
  flex-shrink: 0;
20443
20443
  `, z = u`
20444
20444
  &:hover {
20445
- color: ${h.colour.icon.brandInverse}; // todo: update to hover token when available
20445
+ color: ${h.colour.icon.brandInverseSecondaryHover};
20446
20446
  }
20447
20447
  `, N = u`
20448
20448
  padding: ${h.padding.p4};
@@ -20452,7 +20452,7 @@ const Rv = (e, t) => {
20452
20452
  cursor: pointer;
20453
20453
 
20454
20454
  &:hover {
20455
- color: ${h.colour.icon.brandInverse}; // todo: update to hover token when available
20455
+ color: ${h.colour.icon.brandInverseSecondaryHover};
20456
20456
  }
20457
20457
 
20458
20458
  &:focus-visible {
@@ -40,7 +40,6 @@ const Snackbar = ({
40
40
  error: Icon.AlertTriangle,
41
41
  success: Icon.CheckCircle,
42
42
  }[variant];
43
- // Success token currently differs from Figma (#008E49).
44
43
  const backgroundColor = {
45
44
  default: theme.colour.fill.brandPrimary,
46
45
  error: theme.colour.fill.critical,
@@ -90,7 +89,7 @@ const Snackbar = ({
90
89
 
91
90
  const closeButtonStyle = css`
92
91
  &:hover {
93
- color: ${theme.colour.icon.brandInverse}; // todo: update to hover token when available
92
+ color: ${theme.colour.icon.brandInverseSecondaryHover};
94
93
  }
95
94
  `;
96
95
 
@@ -102,7 +101,7 @@ const Snackbar = ({
102
101
  cursor: pointer;
103
102
 
104
103
  &:hover {
105
- color: ${theme.colour.icon.brandInverse}; // todo: update to hover token when available
104
+ color: ${theme.colour.icon.brandInverseSecondaryHover};
106
105
  }
107
106
 
108
107
  &:focus-visible {
@@ -40,7 +40,7 @@ exports[`Snackbar > snapshot: custom test id 1`] = `
40
40
  class="css-1xjm0bq"
41
41
  >
42
42
  <button
43
- class="css-16c49qk"
43
+ class="css-1omltr1"
44
44
  data-testid="custom-test-id-undo-button"
45
45
  >
46
46
  <span
@@ -95,7 +95,7 @@ exports[`Snackbar > snapshot: minimal props 1`] = `
95
95
  >
96
96
  <button
97
97
  aria-label="Dismiss notification"
98
- class="ucl-uikit-icon-button css-1kh68vi"
98
+ class="ucl-uikit-icon-button css-1s0isp9"
99
99
  data-testid="ucl-uikit-snackbar-close-button"
100
100
  >
101
101
  <svg
@@ -100,14 +100,14 @@ describe('useTheme', () => {
100
100
  );
101
101
 
102
102
  expect(document.body).toHaveStyle({
103
- backgroundColor: lightTheme.colour.bg.brand,
103
+ backgroundColor: lightTheme.colour.bg.default,
104
104
  color: lightTheme.colour.text.default,
105
105
  });
106
106
 
107
107
  fireEvent.click(screen.getByTestId('set-dark'));
108
108
 
109
109
  expect(document.body).toHaveStyle({
110
- backgroundColor: darkTheme.colour.bg.brand,
110
+ backgroundColor: darkTheme.colour.bg.default,
111
111
  color: darkTheme.colour.text.default,
112
112
  });
113
113
  });
@@ -96,7 +96,7 @@ const globalThemeStyles = (activeTheme: ThemeType) => css`
96
96
  html,
97
97
  body,
98
98
  #root {
99
- background-color: ${activeTheme.colour.bg.brand};
99
+ background-color: ${activeTheme.colour.bg.default};
100
100
  color: ${activeTheme.colour.text.default};
101
101
  }
102
102
  `;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit-react-public",
3
3
  "private": false,
4
4
  "license": "UNLICENSED",
5
- "version": "0.36.0",
5
+ "version": "0.36.1",
6
6
  "type": "module",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",