From 745f1afc46e12b281e057e919cd92ba4bd32b3c6 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:46:59 +0200
Subject: [PATCH 01/11] build: add dependencies
---
package-lock.json | 146 +++++++++++++++++++++++++++++++++++++++++++++-
package.json | 6 +-
2 files changed, 150 insertions(+), 2 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index add0a5f..eedf35a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,7 @@
"@radix-ui/react-label": "2.1.0",
"@radix-ui/react-select": "2.1.2",
"@radix-ui/react-slot": "1.1.0",
- "@radix-ui/react-visually-hidden": "^1.1.0",
+ "@radix-ui/react-visually-hidden": "1.1.0",
"@types/lodash": "4.17.10",
"axios-retry": "3.9.1",
"class-variance-authority": "0.7.0",
@@ -39,12 +39,16 @@
"zustand": "4.5.5"
},
"devDependencies": {
+ "@amsterdam/design-system-react": "0.11.1",
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.0.1",
"@types/node": "20",
"@types/react": "18",
"@types/react-dom": "18",
"@types/validator": "13.12.2",
+ "@utrecht/component-library-css": "6.1.0",
+ "@utrecht/component-library-react": "7.2.0",
+ "@utrecht/design-tokens": "2.1.1",
"@vitejs/plugin-react": "4.3.3",
"autoprefixer": "10.4.20",
"axios": "1.7.7",
@@ -86,6 +90,85 @@
"node": ">=6.0.0"
}
},
+ "node_modules/@amsterdam/design-system-assets": {
+ "version": "0.2.1",
+ "resolved": "https://registry.npmjs.org/@amsterdam/design-system-assets/-/design-system-assets-0.2.1.tgz",
+ "integrity": "sha512-byLLmmF1cv2niZMXETV30nprypZY8bAFpNKKuRlmYlIREA6blz9kVIJsQeH3IldmClW1mNa8ccJN4EKJglnuRw==",
+ "dev": true,
+ "license": "SEE LICENSE IN LICENSE.md",
+ "peer": true
+ },
+ "node_modules/@amsterdam/design-system-css": {
+ "version": "0.11.1",
+ "resolved": "https://registry.npmjs.org/@amsterdam/design-system-css/-/design-system-css-0.11.1.tgz",
+ "integrity": "sha512-ZRl+ag+jgYnHAWJWMIErRmS2x4sATrlyVYtVrV0hnxi6yC04o5g2PamjbQPA4/5ytx9gMg7ZxHQgHXUWyaSKEg==",
+ "dev": true,
+ "license": "EUPL-1.2",
+ "peer": true,
+ "peerDependencies": {
+ "@amsterdam/design-system-assets": "0.2.1",
+ "@amsterdam/design-system-tokens": "0.11.0"
+ }
+ },
+ "node_modules/@amsterdam/design-system-react": {
+ "version": "0.11.1",
+ "resolved": "https://registry.npmjs.org/@amsterdam/design-system-react/-/design-system-react-0.11.1.tgz",
+ "integrity": "sha512-xFCXhaXbm2m5+xYUlT9aHlFQ3MyWMRqRY8byK2yU8yLW3MDfqTMoqwSTUMhmvA6dj1JtGfuYEdv7RoxYSp3irg==",
+ "dev": true,
+ "license": "EUPL-1.2",
+ "dependencies": {
+ "@amsterdam/design-system-react-icons": "0.1.12",
+ "@babel/runtime": "7.24.8",
+ "clsx": "2.1.1"
+ },
+ "peerDependencies": {
+ "@amsterdam/design-system-css": "0.11.1",
+ "react": "16 - 18",
+ "react-dom": "16 - 18"
+ }
+ },
+ "node_modules/@amsterdam/design-system-react-icons": {
+ "version": "0.1.12",
+ "resolved": "https://registry.npmjs.org/@amsterdam/design-system-react-icons/-/design-system-react-icons-0.1.12.tgz",
+ "integrity": "sha512-pBR7NnX2J8CsKaNbWSf+lxrPHvPqgSmgB2CYuIDD4RL472kUsNjzJNVOhR24QaKkUGCSUaskhVlUPqeJZIX/MA==",
+ "dev": true,
+ "license": "SEE LICENSE IN LICENSE.md",
+ "peerDependencies": {
+ "react": "16 - 18",
+ "react-dom": "16 - 18"
+ }
+ },
+ "node_modules/@amsterdam/design-system-react/node_modules/@babel/runtime": {
+ "version": "7.24.8",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.8.tgz",
+ "integrity": "sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "regenerator-runtime": "^0.14.0"
+ },
+ "engines": {
+ "node": ">=6.9.0"
+ }
+ },
+ "node_modules/@amsterdam/design-system-react/node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@amsterdam/design-system-tokens": {
+ "version": "0.11.0",
+ "resolved": "https://registry.npmjs.org/@amsterdam/design-system-tokens/-/design-system-tokens-0.11.0.tgz",
+ "integrity": "sha512-LgF8u5EDhNpjdhF4doaojoPV/cLJYWJR0ZPcJpJjjkkfKRsesEtO8cTZIQBCDMpXwvRUIuw7henmipdueLtsww==",
+ "dev": true,
+ "license": "SEE LICENSE IN LICENSE.md",
+ "peer": true
+ },
"node_modules/@babel/code-frame": {
"version": "7.25.9",
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.25.9.tgz",
@@ -3169,6 +3252,60 @@
"resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ=="
},
+ "node_modules/@utrecht/component-library-css": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@utrecht/component-library-css/-/component-library-css-6.1.0.tgz",
+ "integrity": "sha512-+2qarCIgsNpLpxOcG5Rw3WLqNBASoWJFHMI4RlZJm5JTFfnhnl2wC/ylK23wOOooLNNCmsGrLdvSHHrEThJynw==",
+ "dev": true,
+ "license": "EUPL-1.2"
+ },
+ "node_modules/@utrecht/component-library-react": {
+ "version": "7.2.0",
+ "resolved": "https://registry.npmjs.org/@utrecht/component-library-react/-/component-library-react-7.2.0.tgz",
+ "integrity": "sha512-o2nJIWxc93KmQIVNSX4WIJQqZCcMCOnS1A6oqfFKV8kBbnVaDxuqQSgjT/HNkoqLWZQY9Zo5orKdmRDHDpKr+w==",
+ "dev": true,
+ "license": "EUPL-1.2",
+ "dependencies": {
+ "clsx": "2.1.1",
+ "lodash.chunk": "4.2.0"
+ },
+ "peerDependencies": {
+ "@babel/runtime": "^7.23.6",
+ "date-fns": "^2.30.0",
+ "react": "18",
+ "react-dom": "18",
+ "react-vega": "^7.6.0",
+ "vega": "^5.25.0"
+ },
+ "peerDependenciesMeta": {
+ "date-fns": {
+ "optional": true
+ },
+ "react-vega": {
+ "optional": true
+ },
+ "vega": {
+ "optional": true
+ }
+ }
+ },
+ "node_modules/@utrecht/component-library-react/node_modules/clsx": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz",
+ "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@utrecht/design-tokens": {
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/@utrecht/design-tokens/-/design-tokens-2.1.1.tgz",
+ "integrity": "sha512-+mt1fhxwp9f5gBmD9Qh/E0H8w2mIj1ZEvMh9aXY1QdEC9hxRZRdbOjedHhelAtq6kM18SS0AXpgkB2yvhrVwDg==",
+ "dev": true,
+ "license": "SEE LICENSE IN ./LICENSE.md"
+ },
"node_modules/@vitejs/plugin-react": {
"version": "4.3.3",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.3.3.tgz",
@@ -6893,6 +7030,13 @@
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==",
"license": "MIT"
},
+ "node_modules/lodash.chunk": {
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/lodash.chunk/-/lodash.chunk-4.2.0.tgz",
+ "integrity": "sha512-ZzydJKfUHJwHa+hF5X66zLFCBrWn5GeF28OHEr4WVWtNDXlQ/IjWKPBiikqKo2ne0+v6JgCgJ0GzJp8k8bHC7w==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/lodash.merge": {
"version": "4.6.2",
"resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
diff --git a/package.json b/package.json
index ec7c359..c1d3936 100644
--- a/package.json
+++ b/package.json
@@ -17,7 +17,7 @@
"@radix-ui/react-label": "2.1.0",
"@radix-ui/react-select": "2.1.2",
"@radix-ui/react-slot": "1.1.0",
- "@radix-ui/react-visually-hidden": "^1.1.0",
+ "@radix-ui/react-visually-hidden": "1.1.0",
"@types/lodash": "4.17.10",
"axios-retry": "3.9.1",
"class-variance-authority": "0.7.0",
@@ -43,11 +43,15 @@
"devDependencies": {
"@testing-library/dom": "10.4.0",
"@testing-library/react": "16.0.1",
+ "@amsterdam/design-system-react": "0.11.1",
"@types/node": "20",
"@types/react": "18",
"@types/react-dom": "18",
"@types/validator": "13.12.2",
"@vitejs/plugin-react": "4.3.3",
+ "@utrecht/component-library-css": "6.1.0",
+ "@utrecht/component-library-react": "7.2.0",
+ "@utrecht/design-tokens": "2.1.1",
"autoprefixer": "10.4.20",
"axios": "1.7.7",
"eslint": "9",
From 1701a4f3ed0307a85818e51021425fe9ebfa9e4f Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:51:26 +0200
Subject: [PATCH 02/11] feat: add utrecht comp lib + remove melding
telefoon/openingstijden
---
.../[locale]/incident/components/IncidentFormFooter.tsx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/app/[locale]/incident/components/IncidentFormFooter.tsx b/src/app/[locale]/incident/components/IncidentFormFooter.tsx
index ab4b2d5..0cc0884 100644
--- a/src/app/[locale]/incident/components/IncidentFormFooter.tsx
+++ b/src/app/[locale]/incident/components/IncidentFormFooter.tsx
@@ -6,6 +6,8 @@ import { useTranslations } from 'next-intl'
import { Button } from '@/components/ui/Button'
import { useStepperStore } from '@/store/stepper_store'
import { steps, usePathname as usePath, useRouter } from '@/routing/navigation'
+import { Paragraph } from '@utrecht/component-library-react/dist/css-module'
+import '@utrecht/design-tokens/dist/index.css'
type IncidentFormFooterProps = {
handleSignalSubmit?: () => void
@@ -66,12 +68,6 @@ const IncidentFormFooter = ({
)}
-
- Lukt het niet om een melding te doen? Bel het telefoonnummer 14 020
-
- Wij zijn bereikbaar van maandag tot en met vrijdag van 08.00 tot 18.00
- uur.
-
>
)
}
From 78f9143cda27295b1984f51bfb6f9f7217348d7b Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:48:30 +0200
Subject: [PATCH 03/11] feat: add utrecht document component + theme
---
src/app/[locale]/layout.tsx | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx
index e5e6ece..18ba3ab 100644
--- a/src/app/[locale]/layout.tsx
+++ b/src/app/[locale]/layout.tsx
@@ -5,6 +5,8 @@ import { Container } from '@/components'
import { Header } from '@/app/[locale]/components/Header'
import localFont from 'next/font/local'
import AppProvider from '@/components/providers/AppProvider'
+import { Document } from '@utrecht/component-library-react/dist/css-module'
+import '@utrecht/design-tokens/dist/index.css'
const font = localFont({
src: '../../../public/fonts/open-sans.woff2',
@@ -25,10 +27,12 @@ export default function LocaleLayout({
-
-
- {children}
-
+
+
+
+ {children}
+
+
From 5df2f99b6d878755459d5a35b738ae83334391df Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:52:27 +0200
Subject: [PATCH 04/11] feat: add utrecht comp lib + add alert message (melding
telefoon/opgeningstijden)
---
src/app/[locale]/incident/page.tsx | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/app/[locale]/incident/page.tsx b/src/app/[locale]/incident/page.tsx
index 91f68a3..2d2d34c 100644
--- a/src/app/[locale]/incident/page.tsx
+++ b/src/app/[locale]/incident/page.tsx
@@ -1,5 +1,12 @@
import { NextIntlClientProvider, useMessages, useTranslations } from 'next-intl'
import { IncidentDescriptionForm } from '@/app/[locale]/incident/components/IncidentDescriptionForm'
+import {
+ Heading1,
+ Paragraph,
+ Alert,
+ Link,
+} from '@utrecht/component-library-react/dist/css-module'
+import '@utrecht/design-tokens/dist/index.css'
export default async function Home() {
return
@@ -12,7 +19,20 @@ function IncidentDescriptionPage() {
return (
<>
-
{t('heading')}
+
{t('heading')}
+
+
+
+ Lukt het niet om een melding te doen? Bel het telefoonnummer
+ 14 020.
+
+
+ Wij zijn bereikbaar van maandag tot en met vrijdag van 08:00 tot
+ 18:00 uur.
+
+
+
+
From d357eb29d7469e4a969c76efa85b61bd5a09ec8a Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:52:56 +0200
Subject: [PATCH 05/11] feat: add utrecht comp lib + use Heading1 comp for h1
---
src/app/[locale]/incident/add/page.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/app/[locale]/incident/add/page.tsx b/src/app/[locale]/incident/add/page.tsx
index 8443ffe..dc9c17f 100644
--- a/src/app/[locale]/incident/add/page.tsx
+++ b/src/app/[locale]/incident/add/page.tsx
@@ -1,5 +1,7 @@
import { NextIntlClientProvider, useMessages, useTranslations } from 'next-intl'
import { IncidentQuestionsLocationForm } from '@/app/[locale]/incident/add/components/IncidentQuestionsLocationForm'
+import { Heading1 } from '@utrecht/component-library-react/dist/css-module'
+import '@utrecht/design-tokens/dist/index.css'
export default function AddAditionalInformationPage() {
const t = useTranslations('describe-add')
@@ -7,7 +9,7 @@ export default function AddAditionalInformationPage() {
return (
-
{t('heading')}
+
{t('heading')}
From 0e45cf1d95a315e6cc1ec008215f4ac6b6509852 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Mon, 21 Oct 2024 16:53:48 +0200
Subject: [PATCH 06/11] refactor: add missing ;
---
src/app/globals.css | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/app/globals.css b/src/app/globals.css
index 747539a..9cecef3 100644
--- a/src/app/globals.css
+++ b/src/app/globals.css
@@ -4,45 +4,45 @@
/* fonts */
h1 {
- font-size: 28px;
- font-weight: 700;
+ font-size: 28px;
+ font-weight: 700;
}
h2 {
- font-size: 24px;
- font-weight: 500;
+ font-size: 24px;
+ font-weight: 500;
}
h3 {
- font-size: 20px;
- font-weight: 600;
+ font-size: 20px;
+ font-weight: 600;
}
.address__select {
- @apply flex transition duration-100 bg-white p-3 justify-between min-w-[150px] ring-1 ring-border hover:ring-2 hover:bg-hover focus:ring-2 focus:ring-focus outline-none focus-visible:outline-dashed focus-visible:outline-focus_visible focus-within:ring-2 focus-within:ring-focus focus-within:outline-dashed focus-within:outline-focus_visible;
+ @apply flex transition duration-100 bg-white p-3 justify-between min-w-[150px] ring-1 ring-border hover:ring-2 hover:bg-hover focus:ring-2 focus:ring-focus outline-none focus-visible:outline-dashed focus-visible:outline-focus_visible focus-within:ring-2 focus-within:ring-focus focus-within:outline-dashed focus-within:outline-focus_visible;
}
.address__select-menu {
- @apply bg-white mt-[2px] border border-border w-full -ml-[2px];
- min-width: calc(100% + 4px);
+ @apply bg-white mt-[2px] border border-border w-full -ml-[2px];
+ min-width: calc(100% + 4px);
}
.address__select-option {
- @apply px-3 py-3 border-y border-x border-transparent
+ @apply px-3 py-3 border-y border-x border-transparent;
}
.address__select-option__selected {
- @apply bg-hover
+ @apply bg-hover;
}
.address__select-option__focused {
- @apply bg-hover border-y border-focus border-x-transparent
+ @apply bg-hover border-y border-focus border-x-transparent;
}
.address__select-option__focused:is(:first-child) {
- @apply border-t-transparent;
+ @apply border-t-transparent;
}
.address__select-option__focused:is(:last-child) {
- @apply border-b-transparent;
+ @apply border-b-transparent;
}
From b287942f9ed95fadf81d859164a75378dcccb9f8 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Wed, 23 Oct 2024 11:11:13 +0200
Subject: [PATCH 07/11] ci: add .npmrc for fixed versions dependencies
---
.npmrc | 2 ++
1 file changed, 2 insertions(+)
create mode 100644 .npmrc
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..9dc1f54
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,2 @@
+save-exact=true
+save-prefix=
\ No newline at end of file
From 6ed972a6a04e23fbd950c2253177c218fbdb8f82 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Wed, 23 Oct 2024 16:05:07 +0200
Subject: [PATCH 08/11] feat:
---
src/app/layout.tsx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/app/layout.tsx b/src/app/layout.tsx
index 21e8e19..861dc8b 100644
--- a/src/app/layout.tsx
+++ b/src/app/layout.tsx
@@ -1,6 +1,7 @@
import type { Metadata } from 'next'
import { Inter } from 'next/font/google'
import './globals.css'
+import '@utrecht/design-tokens/dist/index.css'
const inter = Inter({ subsets: ['latin'] })
From 57a498d3818dd19bb46494aae9293f10769ad847 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Wed, 23 Oct 2024 16:06:52 +0200
Subject: [PATCH 09/11] chore: remove unused code and imports
---
src/app/[locale]/incident/add/page.tsx | 1 -
.../components/IncidentFormFooter.tsx | 2 --
src/app/[locale]/incident/page.tsx | 19 ++++++++-----------
src/app/[locale]/layout.tsx | 1 -
4 files changed, 8 insertions(+), 15 deletions(-)
diff --git a/src/app/[locale]/incident/add/page.tsx b/src/app/[locale]/incident/add/page.tsx
index dc9c17f..5776aa7 100644
--- a/src/app/[locale]/incident/add/page.tsx
+++ b/src/app/[locale]/incident/add/page.tsx
@@ -1,7 +1,6 @@
import { NextIntlClientProvider, useMessages, useTranslations } from 'next-intl'
import { IncidentQuestionsLocationForm } from '@/app/[locale]/incident/add/components/IncidentQuestionsLocationForm'
import { Heading1 } from '@utrecht/component-library-react/dist/css-module'
-import '@utrecht/design-tokens/dist/index.css'
export default function AddAditionalInformationPage() {
const t = useTranslations('describe-add')
diff --git a/src/app/[locale]/incident/components/IncidentFormFooter.tsx b/src/app/[locale]/incident/components/IncidentFormFooter.tsx
index 0cc0884..36ac3f8 100644
--- a/src/app/[locale]/incident/components/IncidentFormFooter.tsx
+++ b/src/app/[locale]/incident/components/IncidentFormFooter.tsx
@@ -6,8 +6,6 @@ import { useTranslations } from 'next-intl'
import { Button } from '@/components/ui/Button'
import { useStepperStore } from '@/store/stepper_store'
import { steps, usePathname as usePath, useRouter } from '@/routing/navigation'
-import { Paragraph } from '@utrecht/component-library-react/dist/css-module'
-import '@utrecht/design-tokens/dist/index.css'
type IncidentFormFooterProps = {
handleSignalSubmit?: () => void
diff --git a/src/app/[locale]/incident/page.tsx b/src/app/[locale]/incident/page.tsx
index 2d2d34c..40475df 100644
--- a/src/app/[locale]/incident/page.tsx
+++ b/src/app/[locale]/incident/page.tsx
@@ -6,7 +6,6 @@ import {
Alert,
Link,
} from '@utrecht/component-library-react/dist/css-module'
-import '@utrecht/design-tokens/dist/index.css'
export default async function Home() {
return
@@ -21,16 +20,14 @@ function IncidentDescriptionPage() {
{t('heading')}
-
-
- Lukt het niet om een melding te doen? Bel het telefoonnummer
- 14 020.
-
-
- Wij zijn bereikbaar van maandag tot en met vrijdag van 08:00 tot
- 18:00 uur.
-
-
+
+ Lukt het niet om een melding te doen? Bel het telefoonnummer
+ 14 020.
+
+
+ Wij zijn bereikbaar van maandag tot en met vrijdag van 08:00 tot
+ 18:00 uur.
+
diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx
index 18ba3ab..6d4f93e 100644
--- a/src/app/[locale]/layout.tsx
+++ b/src/app/[locale]/layout.tsx
@@ -6,7 +6,6 @@ import { Header } from '@/app/[locale]/components/Header'
import localFont from 'next/font/local'
import AppProvider from '@/components/providers/AppProvider'
import { Document } from '@utrecht/component-library-react/dist/css-module'
-import '@utrecht/design-tokens/dist/index.css'
const font = localFont({
src: '../../../public/fonts/open-sans.woff2',
From 985811abcde80d517b4654f8265c8d46627e9792 Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Wed, 23 Oct 2024 16:09:29 +0200
Subject: [PATCH 10/11] feat: swap: link,button,p comp to NLDS comp
---
src/app/[locale]/incident/components/Stepper.tsx | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/app/[locale]/incident/components/Stepper.tsx b/src/app/[locale]/incident/components/Stepper.tsx
index 2d991b5..2d76912 100644
--- a/src/app/[locale]/incident/components/Stepper.tsx
+++ b/src/app/[locale]/incident/components/Stepper.tsx
@@ -1,11 +1,15 @@
'use client'
import { useTranslations } from 'next-intl'
-import { Link, Paths, usePathname } from '@/routing/navigation'
+import { Paths, usePathname } from '@/routing/navigation'
import { useStepperStore } from '@/store/stepper_store'
import { useEffect, useRef } from 'react'
-import { Button } from '@/components/ui/Button'
import { useFormStore } from '@/store/form_store'
+import {
+ Button,
+ Link,
+ Paragraph,
+} from '@utrecht/component-library-react/dist/css-module'
type StepperProps = {}
@@ -107,13 +111,13 @@ export const Stepper = ({}: StepperProps) => {
>
{index + 1}
-
{item.name}
-
+
)
})}
From 6ef8a8b4f7e9ad83b1cc5e4139fa65492b21eedf Mon Sep 17 00:00:00 2001
From: Tessa Viergever <112861180+TessaViergever@users.noreply.github.com>
Date: Wed, 23 Oct 2024 16:12:50 +0200
Subject: [PATCH 11/11] feat: swap input, formlabel and textarea to nlds comp
---
.../components/IncidentDescriptionForm.tsx | 36 ++++++++++---------
1 file changed, 19 insertions(+), 17 deletions(-)
diff --git a/src/app/[locale]/incident/components/IncidentDescriptionForm.tsx b/src/app/[locale]/incident/components/IncidentDescriptionForm.tsx
index 7b38888..494765f 100644
--- a/src/app/[locale]/incident/components/IncidentDescriptionForm.tsx
+++ b/src/app/[locale]/incident/components/IncidentDescriptionForm.tsx
@@ -7,14 +7,11 @@ import {
FormField,
FormItem,
FormMessage,
- FormLabel,
FormDescription,
} from '@/components/ui/Form'
import { useForm } from 'react-hook-form'
import { zodResolver } from '@hookform/resolvers/zod'
import { useTranslations } from 'next-intl'
-import { Textarea } from '@/components/ui/TextArea'
-import { Input } from '@/components/ui/Input'
import { IncidentFormFooter } from '@/app/[locale]/incident/components/IncidentFormFooter'
import { useStepperStore } from '@/store/stepper_store'
import { useRouter } from '@/routing/navigation'
@@ -23,6 +20,9 @@ import { getCategoryForDescription } from '@/services/classification'
import { debounce } from 'lodash'
import { useFormStore } from '@/store/form_store'
+import { FormFieldTextarea } from '@utrecht/component-library-react/dist/css-module'
+import { FileInput, Label } from '@amsterdam/design-system-react'
+
export const IncidentDescriptionForm = () => {
const t = useTranslations('describe-report.form')
const { updateForm, formState } = useFormStore()
@@ -89,27 +89,24 @@ export const IncidentDescriptionForm = () => {
name={'description'}
control={form.control}
render={({ field, formState: { errors } }) => (
-
-
- {t('describe_textarea_heading')}
-
- {t('describe_textarea_description')}
-
-
-
-
-
-
-
+
)}
/>
+
(
- {t('describe_upload_heading')}
+ {t('describe_upload_heading')}
{t('describe_upload_description')}
@@ -117,7 +114,12 @@ export const IncidentDescriptionForm = () => {
{/* TODO: put onChange handler on file upload, or provide defaultValue (bind to react-hook-form). To prevent error */}
- 'test'} />
+ 'test'}
+ multiple
+ />
)}