@wise/components-theming 1.10.1 → 1.10.2

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.
@@ -1,6 +1,6 @@
1
1
  import { useContext, useState, useEffect, useMemo } from 'react';
2
2
  import { ThemedChildren } from './ThemedChildren.mjs';
3
- import { DEFAULT_BASE_THEME, DEFAULT_SCREEN_MODE } from './const.mjs';
3
+ import { DEFAULT_SCREEN_MODE, DEFAULT_BASE_THEME } from './const.mjs';
4
4
  import { normalizeTheme, getThemeClassName } from './helpers.mjs';
5
5
  import { ThemeContext } from './ThemeProviderContext.mjs';
6
6
  import { jsx } from 'react/jsx-runtime';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/components-theming",
3
- "version": "1.10.1",
3
+ "version": "1.10.2",
4
4
  "description": "Provides theming support for the Wise Design system components",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -12,30 +12,30 @@
12
12
  "url": "git+https://github.com/transferwise/neptune-web.git"
13
13
  },
14
14
  "dependencies": {
15
- "@babel/runtime": "^7.28.4",
15
+ "@babel/runtime": "^7.29.2",
16
16
  "clsx": "^2.1.1"
17
17
  },
18
18
  "devDependencies": {
19
- "@babel/core": "^7.28.5",
20
- "@babel/plugin-transform-runtime": "^7.28.5",
21
- "@babel/preset-env": "^7.28.5",
19
+ "@babel/core": "^7.29.0",
20
+ "@babel/plugin-transform-runtime": "^7.29.0",
21
+ "@babel/preset-env": "^7.29.3",
22
22
  "@babel/preset-react": "^7.28.5",
23
23
  "@babel/preset-typescript": "^7.28.5",
24
- "@rollup/plugin-babel": "^6.1.0",
24
+ "@rollup/plugin-babel": "^7.0.0",
25
25
  "@rollup/plugin-typescript": "^12.3.0",
26
26
  "@testing-library/dom": "^10.4.1",
27
27
  "@testing-library/jest-dom": "^6.9.1",
28
- "@testing-library/react": "^16.3.1",
28
+ "@testing-library/react": "^16.3.2",
29
29
  "@tsconfig/recommended": "^1.0.13",
30
30
  "@types/babel__core": "^7.20.5",
31
31
  "@types/jest": "^30.0.0",
32
- "@types/react": "^18.3.23",
32
+ "@types/react": "^18.3.28",
33
33
  "@types/react-dom": "^18.3.7",
34
34
  "@wise/eslint-config": "^13.3.0",
35
- "eslint": "^9.39.2",
36
- "jest": "^30.2.0",
35
+ "eslint": "^9.39.4",
36
+ "jest": "^30.3.0",
37
37
  "jest-environment-jsdom": "^29.7.0",
38
- "rollup": "^4.54.0",
38
+ "rollup": "^4.60.2",
39
39
  "rollup-preserve-directives": "^1.1.3",
40
40
  "@wise/wds-configs": "0.0.0"
41
41
  },
@@ -1,4 +1,4 @@
1
- import { render, screen, waitFor } from '@testing-library/react';
1
+ import { fireEvent, render, screen, waitFor } from '@testing-library/react';
2
2
 
3
3
  import { ThemeProvider, ThemeProviderProps } from './ThemeProvider';
4
4
  import { useState } from 'react';
@@ -106,7 +106,7 @@ describe('ThemeProvider', () => {
106
106
  expect(screen.getByText('content').parentElement).toHaveClass('np-theme-personal');
107
107
 
108
108
  // Change to business theme
109
- screen.getByText('Change to business').click();
109
+ fireEvent.click(screen.getByText('Change to business'));
110
110
  await waitFor(() => {
111
111
  // eslint-disable-next-line testing-library/no-node-access
112
112
  expect(screen.getByText('content').parentElement).toHaveClass(
@@ -116,7 +116,7 @@ describe('ThemeProvider', () => {
116
116
  });
117
117
 
118
118
  // Change to dark mode
119
- screen.getByText('Change to dark').click();
119
+ fireEvent.click(screen.getByText('Change to dark'));
120
120
  await waitFor(() => {
121
121
  // eslint-disable-next-line testing-library/no-node-access
122
122
  expect(screen.getByText('content').parentElement).toHaveClass(
File without changes