@ssa-ui-kit/core 0.0.29-alpha → 0.0.33-alpha

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssa-ui-kit/core",
3
- "version": "0.0.29-alpha",
3
+ "version": "0.0.33-alpha",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "private": false,
@@ -29,8 +29,8 @@
29
29
  "loose-envify": "^1.4.0",
30
30
  "scheduler": "^0.23.0",
31
31
  "uuid": "^9.0.0",
32
- "@ssa-ui-kit/utils": "^0.0.1-alpha",
33
- "@ssa-ui-kit/hooks": "^0.0.2-alpha"
32
+ "@ssa-ui-kit/hooks": "^0.0.2-alpha",
33
+ "@ssa-ui-kit/utils": "^0.0.1-alpha"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@emotion/jest": "^11.11.0",
@@ -58,7 +58,8 @@
58
58
  "@nivo/pie": "0.83.0",
59
59
  "react": "18.x",
60
60
  "react-dom": "18.x",
61
- "react-hook-form": "^7.46.1"
61
+ "react-hook-form": "^7.46.1",
62
+ "react-router-dom": "6.x"
62
63
  },
63
64
  "peerDependenciesMeta": {
64
65
  "@types/react": {
@@ -64,7 +64,7 @@ test('Widgets: Filters - More button count notification should be changed', asyn
64
64
  return window.getComputedStyle(el, ':before').content;
65
65
  });
66
66
  expect(beforeContent).toEqual('"More"');
67
- let buttonText = await triggerButton.innerText();
67
+ const buttonText = await triggerButton.innerText();
68
68
  expect(buttonText).toEqual('2');
69
69
 
70
70
  await page.getByText('Status: Running').click();
@@ -79,8 +79,6 @@ test('Widgets: Filters - More button count notification should be changed', asyn
79
79
  return window.getComputedStyle(el, ':before').content;
80
80
  });
81
81
  expect(beforeContent).toEqual('"More"');
82
- buttonText = await triggerButton.innerText();
83
- expect(buttonText).toEqual('3');
84
82
  });
85
83
 
86
84
  test('Widgets: Filters - Filter button should be shown when items not selected', async ({
@@ -5,8 +5,6 @@ import { MemoryRouterDecorator } from './stories/decorators';
5
5
 
6
6
  import { LinksTabBar } from './index';
7
7
 
8
- jest.mock('d3-color', () => ({}));
9
-
10
8
  function setup(Component: React.ElementType) {
11
9
  return {
12
10
  user: userEvent.setup(),
@@ -22,7 +22,7 @@ const NavBarWrapper = styled.div`
22
22
  width: 64px;
23
23
  }
24
24
 
25
- ${({ theme }) => theme.mediaQueries.xlg} {
25
+ ${({ theme }) => theme.mediaQueries.lg} {
26
26
  display: flex;
27
27
  position: fixed;
28
28
 
@@ -36,9 +36,10 @@ export const ProgressInfo = ({ data, className }: ProgressInfoProps) => {
36
36
  });
37
37
 
38
38
  setOptions(options);
39
- setSelected(options[0]);
40
-
41
- filterData(options[0].id as Period);
39
+ if (options.length > 0) {
40
+ setSelected(options[0]);
41
+ filterData(options[0].id as Period);
42
+ }
42
43
  }
43
44
  }, [data]);
44
45
 
@@ -4,8 +4,6 @@ import { ThemeProvider } from '@emotion/react';
4
4
  import { WithVisibleLG } from '.';
5
5
  import { mainTheme } from '../..';
6
6
 
7
- jest.mock('d3-color', () => ({}));
8
-
9
7
  const TestComponent = () => {
10
8
  return <p>Test</p>;
11
9
  };
@@ -4,8 +4,6 @@ import { ThemeProvider } from '@emotion/react';
4
4
  import { WithVisibleMD } from '.';
5
5
  import { mainTheme } from '../..';
6
6
 
7
- jest.mock('d3-color', () => ({}));
8
-
9
7
  const TestComponent = () => {
10
8
  return <p>Test</p>;
11
9
  };
@@ -4,8 +4,6 @@ import { ThemeProvider } from '@emotion/react';
4
4
  import { WithVisibleSM } from '.';
5
5
  import { mainTheme } from '../..';
6
6
 
7
- jest.mock('d3-color', () => ({}));
8
-
9
7
  const TestComponent = () => {
10
8
  return <p>Test</p>;
11
9
  };
@@ -4,8 +4,6 @@ import { ThemeProvider } from '@emotion/react';
4
4
  import { WithVisibleUpToLG } from '.';
5
5
  import { mainTheme } from '../..';
6
6
 
7
- jest.mock('d3-color', () => ({}));
8
-
9
7
  const TestComponent = () => {
10
8
  return <p>Test</p>;
11
9
  };