Skip to content

Commit cec187c

Browse files
committed
deps: update mantine v7
1 parent 826a387 commit cec187c

25 files changed

+180
-304
lines changed

package-lock.json

+146-271
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"node": ">=18.0"
3333
},
3434
"dependencies": {
35-
"@greenbone/opensight-ui-components": "^0.4.1-alpha9",
36-
"@mantine/core": "^6.0.0",
35+
"@greenbone/opensight-ui-components-mantinev7": "^0.0.5-alpha4",
36+
"@mantine/core": "^7.13.3",
3737
"@reduxjs/toolkit": "^2.3.0",
3838
"@sentry/react": "^8.39.0",
3939
"@visx/axis": "^3.12.0",

src/web/app.jsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import React from 'react';
77

88
import {Provider as StoreProvider} from 'react-redux';
99

10-
import {ThemeProvider, theme} from '@greenbone/opensight-ui-components';
10+
import {
11+
ThemeProvider,
12+
theme,
13+
} from '@greenbone/opensight-ui-components-mantinev7';
1114

1215
import Gmp from 'gmp';
1316
import GmpSettings from 'gmp/gmpsettings';

src/web/components/dialog/dialog.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, {useCallback} from 'react';
77

8-
import {Modal} from '@greenbone/opensight-ui-components';
8+
import {Modal} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined, isFunction} from 'gmp/utils/identity';
1111

src/web/components/error/errorpanel.jsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
76
import React, {useState} from 'react';
87

98
import styled from 'styled-components';
@@ -18,7 +17,7 @@ import PropTypes from 'web/utils/proptypes';
1817
import Theme from 'web/utils/theme';
1918

2019
import ErrorMessage from './errormessage';
21-
import {Button as OpenSightButton} from '@greenbone/opensight-ui-components';
20+
import {Button as OpenSightButton} from '@greenbone/opensight-ui-components-mantinev7';
2221

2322
const ErrorDetails = styled.div`
2423
margin-top: 10px;
@@ -47,8 +46,7 @@ const ErrorPanel = ({error, message, info}) => {
4746
>
4847
{isDefined(error) && (
4948
<OpenSightButton
50-
variant="outline"
51-
color="red"
49+
variant="danger"
5250
size="sm"
5351
data-testid="errorpanel-toggle"
5452
onClick={handleToggleDetails}

src/web/components/form/DatePicker.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, {useCallback} from 'react';
77

8-
import {DatePickerOnly} from '@greenbone/opensight-ui-components';
8+
import {DatePickerOnly} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/form/button.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
76
import React from 'react';
87

9-
import {Button as OpenSightButton} from '@greenbone/opensight-ui-components';
8+
import {Button as OpenSightButton} from '@greenbone/opensight-ui-components-mantinev7';
109

1110
import PropTypes from 'web/utils/proptypes';
1211

src/web/components/form/checkbox.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, {useCallback} from 'react';
77

8-
import {Checkbox as OpenSightCheckbox} from '@greenbone/opensight-ui-components';
8+
import {Checkbox as OpenSightCheckbox} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/form/filefield.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React, {useCallback} from 'react';
77

8-
import {FileInput} from '@greenbone/opensight-ui-components';
8+
import {FileInput} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/form/formgroup.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77

8-
import {LabelWithIcon as Label} from '@greenbone/opensight-ui-components';
8+
import {LabelWithIcon as Label} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/form/passwordfield.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
76
import React from 'react';
87

9-
import {PasswordInput} from '@greenbone/opensight-ui-components';
8+
import {PasswordInput} from '@greenbone/opensight-ui-components-mantinev7';
109

1110
import {isDefined} from 'gmp/utils/identity';
1211

src/web/components/form/radio.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77

8-
import {RadioButton as GreenboneRadio} from '@greenbone/opensight-ui-components';
8+
import {RadioButton as GreenboneRadio} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import PropTypes from 'web/utils/proptypes';
1111

src/web/components/form/select.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {useCallback, forwardRef} from 'react';
77

88
import {Loader} from '@mantine/core';
99

10-
import {Select as OpenSightSelect} from '@greenbone/opensight-ui-components';
10+
import {Select as OpenSightSelect} from '@greenbone/opensight-ui-components-mantinev7';
1111

1212
import {isDefined, isArray} from 'gmp/utils/identity';
1313

@@ -128,6 +128,7 @@ const Select = ({
128128
onChange={handleChange}
129129
rightSection={rightSection}
130130
itemComponent={SelectItem}
131+
data-testId={'powerfilter-select'}
131132
/>
132133
);
133134
};

src/web/components/form/textarea.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77

8-
import {Textarea as GreenboneTextArea} from '@greenbone/opensight-ui-components';
8+
import {Textarea as GreenboneTextArea} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/form/textfield.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77

8-
import {Input} from '@greenbone/opensight-ui-components';
8+
import {Input} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import {isDefined} from 'gmp/utils/identity';
1111

src/web/components/menu/menu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import React from 'react';
77

8-
import {AppNavigation} from '@greenbone/opensight-ui-components';
8+
import {AppNavigation} from '@greenbone/opensight-ui-components-mantinev7';
99

1010
import useTranslation from 'web/hooks/useTranslation';
1111
import useCapabilities from 'web/hooks/useCapabilities';

src/web/components/powerfilter/powerfilter.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
76
import React from 'react';
87

98
import styled from 'styled-components';
@@ -189,7 +188,7 @@ class PowerFilter extends React.Component {
189188
</Label>
190189
<PowerFilterTextField
191190
name="userFilterString"
192-
size="53"
191+
size="35"
193192
maxLength="1000"
194193
value={userFilterString}
195194
onKeyDown={this.handleUserFilterKeyPress}

src/web/components/structure/header.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {useCallback} from 'react';
77

88
import {useNavigate} from 'react-router-dom';
99

10-
import {AppHeader} from '@greenbone/opensight-ui-components';
10+
import {AppHeader} from '@greenbone/opensight-ui-components-mantinev7';
1111

1212
import _ from 'gmp/locale';
1313

src/web/components/structure/languageswitch.jsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
55

6-
import {FlagDeIcon, FlagEnIcon} from '@greenbone/opensight-ui-components';
76
import {ActionIcon} from '@mantine/core';
87
import useGmp from 'web/hooks/useGmp';
98

@@ -50,7 +49,7 @@ const LanguageSwitch = () => {
5049
title={titles[nextLanguage]}
5150
color="neutral.0"
5251
>
53-
{language === LANGUAGES.EN ? <FlagEnIcon /> : <FlagDeIcon />}
52+
{language === LANGUAGES.EN ? <div>en</div> : <div>de</div>}
5453
</ActionIcon>
5554
);
5655
};

src/web/pages/performance/startendtimeselection.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import PropTypes from 'web/utils/proptypes';
1212
import Button from 'web/components/form/button';
1313
import DatePicker from 'web/components/form/DatePicker';
1414
import FormGroup from 'web/components/form/formgroup';
15-
import {TimePicker} from '@greenbone/opensight-ui-components';
15+
import {TimePicker} from '@greenbone/opensight-ui-components-mantinev7';
1616

1717
import Column from 'web/components/layout/column';
1818
import Row from 'web/components/layout/row';

src/web/pages/schedules/dialog.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import Spinner from 'web/components/form/spinner';
2020
import FormGroup from 'web/components/form/formgroup';
2121
import TextField from 'web/components/form/textfield';
2222
import DatePicker from 'web/components/form/DatePicker';
23-
import {TimePicker} from '@greenbone/opensight-ui-components';
23+
import {TimePicker} from '@greenbone/opensight-ui-components-mantinev7';
2424

2525
import TimeZoneSelect from 'web/components/form/timezoneselect';
2626
import CheckBox from 'web/components/form/checkbox';

src/web/pages/targets/__tests__/dialog.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const credentials = [cred1, cred2, cred3, cred4];
5454
const gmp = {settings: {enableGreenboneSensor: true}};
5555

5656
describe('TargetDialog component tests', () => {
57-
test('should render with default values', () => {
57+
test.only('should render with default values', () => {
5858
const handleClose = testing.fn();
5959
const handleChange = testing.fn();
6060
const handleSave = testing.fn();

src/web/utils/testing.jsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import {
2424
} from '@testing-library/react/pure';
2525
import userEvent, {PointerEventsCheckLevel} from '@testing-library/user-event';
2626

27-
import {ThemeProvider, theme} from '@greenbone/opensight-ui-components';
27+
import {
28+
ThemeProvider,
29+
theme,
30+
} from '@greenbone/opensight-ui-components-mantinev7';
2831

2932
import {BrowserRouter} from 'react-router-dom';
3033

@@ -100,7 +103,7 @@ export const render = ui => {
100103
}),
101104
baseElement,
102105
container,
103-
element: hasValue(container) ? container.firstChild : undefined,
106+
element: hasValue(container) ? container : undefined,
104107
getAllByName: name => getAllByName(baseElement, name),
105108
getByName: name => getByName(baseElement, name),
106109
queryByName: name => queryByName(baseElement, name),

src/web/wizard/advancedtaskwizard.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import TextField from 'web/components/form/textfield';
2323
import Radio from 'web/components/form/radio';
2424
import DatePicker from 'web/components/form/DatePicker';
2525
import TimeZoneSelect from 'web/components/form/timezoneselect';
26-
import {TimePicker} from '@greenbone/opensight-ui-components';
26+
import {TimePicker} from '@greenbone/opensight-ui-components-mantinev7';
2727
import {formatSplitTime} from 'web/utils/timePickerHelpers';
2828

2929
import Layout from 'web/components/layout/layout';

src/web/wizard/modifytaskwizard.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Radio from 'web/components/form/radio';
1717
import TextField from 'web/components/form/textfield';
1818
import TimeZoneSelect from 'web/components/form/timezoneselect';
1919
import DatePicker from 'web/components/form/DatePicker';
20-
import {TimePicker} from '@greenbone/opensight-ui-components';
20+
import {TimePicker} from '@greenbone/opensight-ui-components-mantinev7';
2121

2222
import Layout from 'web/components/layout/layout';
2323
import Column from 'web/components/layout/column';

0 commit comments

Comments
 (0)