Skip to content

Commit 2b64d9b

Browse files
authored
vite and @amsterdam/design-system updated (#85)
1 parent c1961d6 commit 2b64d9b

File tree

7 files changed

+791
-828
lines changed

7 files changed

+791
-828
lines changed

package-lock.json

Lines changed: 774 additions & 804 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"@typescript-eslint/eslint-plugin": "^7.18.0",
4545
"@typescript-eslint/parser": "^7.18.0",
4646
"@vitejs/plugin-react-swc": "^3.7.2",
47-
"@vitest/coverage-v8": "^1.6.1",
47+
"@vitest/coverage-v8": "^3.2.4",
4848
"copyfiles": "^2.4.1",
4949
"eslint": "^8.57.1",
5050
"eslint-config-prettier": "^9.1.0",
@@ -67,16 +67,16 @@
6767
"stylelint-prettier": "^5.0.3",
6868
"ts-node": "^10.9.2",
6969
"typescript": "^5.7.3",
70-
"vite": "^5.4.14",
70+
"vite": "^6.3.5",
7171
"vite-plugin-svgr": "^4.3.0",
72-
"vitest": "^1.6.1"
72+
"vitest": "^3.2.4"
7373
},
7474
"dependencies": {
75-
"@amsterdam/design-system-assets": "^0.3.0",
76-
"@amsterdam/design-system-css": "^0.14.0",
77-
"@amsterdam/design-system-react": "^0.14.0",
78-
"@amsterdam/design-system-react-icons": "^0.1.13",
79-
"@amsterdam/design-system-tokens": "^0.14.0",
75+
"@amsterdam/design-system-assets": "^1.0.0",
76+
"@amsterdam/design-system-css": "^1.0.0",
77+
"@amsterdam/design-system-react": "^1.1.0",
78+
"@amsterdam/design-system-react-icons": "^1.0.0",
79+
"@amsterdam/design-system-tokens": "^1.0.1",
8080
"geojson": "^0.5.0",
8181
"leaflet": "^1.9.4",
8282
"proj4": "^2.15.0",

src/pages/ContextExamples/Position/Alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const Alert: FunctionComponent = () => {
88

99
return (
1010
<div className={styles['alert-wrapper']}>
11-
<AmsAlert severity="info">
11+
<AmsAlert heading="Coordinates" headingLevel={3} severity="success">
1212
<Paragraph size="small">
1313
{position ? `${position[0]}, ${position[1]}` : ''}
1414
</Paragraph>

src/pages/ContextExamples/SingleMarkerSelect/Map.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ const Map: FunctionComponent = () => {
6262
setMapInstance(map);
6363

6464
map.on('moveend', () => {
65-
// setDisplayAlert(true);
6665
setPosition([map.getCenter().lat, map.getCenter().lng]);
6766
});
6867

src/pages/ContextExamples/ZoomControls/Controls.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import { Button } from '@amsterdam/design-system-react';
2-
import {
3-
EnlargeIcon,
4-
MinimiseIcon,
5-
} from '@amsterdam/design-system-react-icons';
2+
import { PlusIcon, MinusIcon } from '@amsterdam/design-system-react-icons';
63
import { useMapInstance } from './MapContext';
74
import styles from './controls.module.css';
85

@@ -25,15 +22,15 @@ const Controls = () => {
2522
<Button
2623
variant="secondary"
2724
iconOnly
28-
icon={EnlargeIcon}
25+
icon={PlusIcon}
2926
onClick={handleZoomInClick}
3027
>
3128
Zoom in
3229
</Button>
3330
<Button
3431
variant="secondary"
3532
iconOnly
36-
icon={MinimiseIcon}
33+
icon={MinusIcon}
3734
onClick={handleZoomOutClick}
3835
>
3936
Zoom out

src/pages/ContextExamples/ZoomControlsFullScreen/Header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { Grid, Header as AmsHeader } from '@amsterdam/design-system-react';
1+
import { Grid, PageHeader } from '@amsterdam/design-system-react';
22

33
const Header = () => {
44
return (
55
<Grid>
66
<Grid.Cell span="all">
7-
<AmsHeader />
7+
<PageHeader />
88
</Grid.Cell>
99
</Grid>
1010
);

src/pages/ContextExamples/ZoomControlsFullScreen/ZoomControls.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import type { FunctionComponent } from 'react';
22
import { Button } from '@amsterdam/design-system-react';
3-
import {
4-
EnlargeIcon,
5-
MinimiseIcon,
6-
} from '@amsterdam/design-system-react-icons';
3+
import { PlusIcon, MinusIcon } from '@amsterdam/design-system-react-icons';
74
import { useMapInstance } from './MapContext';
85
import styles from './styles.module.css';
96

@@ -27,15 +24,15 @@ const ZoomControls: FunctionComponent = () => {
2724
<Button
2825
variant="secondary"
2926
iconOnly
30-
icon={EnlargeIcon}
27+
icon={PlusIcon}
3128
onClick={handleZoomInClick}
3229
>
3330
Zoom in
3431
</Button>
3532
<Button
3633
variant="secondary"
3734
iconOnly
38-
icon={MinimiseIcon}
35+
icon={MinusIcon}
3936
onClick={handleZoomOutClick}
4037
>
4138
Zoom out

0 commit comments

Comments
 (0)