From 1f8cfa494997a7be10f8a70d537b49447c55e6ba Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Mon, 26 Feb 2024 11:54:31 +0100 Subject: [PATCH 1/4] :recycle: - refactor: alter story name to fix eslint issue --- src/components/form/form/form.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/form/form/form.stories.tsx b/src/components/form/form/form.stories.tsx index 6ef1734d..c047c3da 100644 --- a/src/components/form/form/form.stories.tsx +++ b/src/components/form/form/form.stories.tsx @@ -75,7 +75,7 @@ export const FormComponent: Story = { }, }; -export const usageWithFormik: Story = { +export const UsageWithFormik: Story = { ...FormComponent, args: { ...FormComponent.args, From da3f951c5b396b6b7e6cb41a18901e5218aba411 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Mon, 26 Feb 2024 11:57:04 +0100 Subject: [PATCH 2/4] :globe_with_meridians: - fix: specify transllation id of mykn.templates.Login.labelLogin explicitly --- src/lib/i18n/compiled/en.json | 6 +++--- src/lib/i18n/compiled/nl.json | 4 ++-- src/lib/i18n/messages/en.json | 4 ++-- src/lib/i18n/messages/nl.json | 2 +- src/templates/login/login.tsx | 1 + 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/lib/i18n/compiled/en.json b/src/lib/i18n/compiled/en.json index e3410126..6ff2bb70 100644 --- a/src/lib/i18n/compiled/en.json +++ b/src/lib/i18n/compiled/en.json @@ -109,10 +109,10 @@ "value": "clear value" } ], - "mm+twj": [ + "mykn.templates.Login.labelLogin": [ { "type": 0, - "value": "login" + "value": "inloggen" } ] -} +} \ No newline at end of file diff --git a/src/lib/i18n/compiled/nl.json b/src/lib/i18n/compiled/nl.json index 6a6bc9a1..12a942a6 100644 --- a/src/lib/i18n/compiled/nl.json +++ b/src/lib/i18n/compiled/nl.json @@ -109,10 +109,10 @@ "value": "waarde wissen" } ], - "mm+twj": [ + "mykn.templates.Login.labelLogin": [ { "type": 0, "value": "inloggen" } ] -} +} \ No newline at end of file diff --git a/src/lib/i18n/messages/en.json b/src/lib/i18n/messages/en.json index bedab974..412f6c50 100644 --- a/src/lib/i18n/messages/en.json +++ b/src/lib/i18n/messages/en.json @@ -64,8 +64,8 @@ "description": "mykn.components.Select: The clear value (accessible) label", "originalDefault": "waarde wissen" }, - "mm+twj": { - "defaultMessage": "login", + "mykn.templates.Login.labelLogin": { + "defaultMessage": "inloggen", "description": "templates.Login: The login button label", "originalDefault": "inloggen" } diff --git a/src/lib/i18n/messages/nl.json b/src/lib/i18n/messages/nl.json index d562aea6..8710f4d8 100644 --- a/src/lib/i18n/messages/nl.json +++ b/src/lib/i18n/messages/nl.json @@ -64,7 +64,7 @@ "description": "mykn.components.Select: The clear value (accessible) label", "originalDefault": "waarde wissen" }, - "mm+twj": { + "mykn.templates.Login.labelLogin": { "defaultMessage": "inloggen", "description": "templates.Login: The login button label", "originalDefault": "inloggen" diff --git a/src/templates/login/login.tsx b/src/templates/login/login.tsx index 38c171fd..c3c3689e 100644 --- a/src/templates/login/login.tsx +++ b/src/templates/login/login.tsx @@ -27,6 +27,7 @@ export const Login: React.FC = ({ labelSubmit, ...formProps }) => { const labelLogin = labelSubmit ? labelSubmit : intl.formatMessage({ + id: "mykn.templates.Login.labelLogin", description: "templates.Login: The login button label", defaultMessage: "inloggen", }); From 80286cede26806788beee39792eb7c71aff29328 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Mon, 26 Feb 2024 12:00:55 +0100 Subject: [PATCH 3/4] :bookmark: - chore: alter project name to "@maykin-ui/admin-ui" --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 587c7a7f..57a4b83b 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@maykin/ui", + "name": "@maykin-ui/admin-ui", "version": "0.0.0", "description": "", "scripts": { From c4950bb5f50249b38913b7668d7b1ea4e37c0711 Mon Sep 17 00:00:00 2001 From: Sven van de Scheur Date: Mon, 26 Feb 2024 12:42:08 +0100 Subject: [PATCH 4/4] :technologist: - chore: rename some links in package.json --- package.json | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 57a4b83b..79022103 100644 --- a/package.json +++ b/package.json @@ -44,16 +44,16 @@ "types": "dist/esm/index.d.ts", "repository": { "type": "git", - "url": "git+https://github.com/maykinmedia/maykin-ui.git" + "url": "git+https://github.com/maykinmedia/admin-ui.git" }, "author": { "name": "Maykin Media" }, "license": "MIT", "bugs": { - "url": "https://github.com/maykinmedia/maykin-ui/issues" + "url": "https://github.com/maykinmedia/admin-ui/issues" }, - "homepage": "https://github.com/maykinmedia/maykin-ui#readme", + "homepage": "https://github.com/maykinmedia/admin-ui/#readme", "devDependencies": { "@commitlint/cli": "^18.4.4", "@formatjs/cli": "^6.2.7", @@ -111,7 +111,6 @@ "*.{js,jsx,ts,tsx,md}": "npm run lint:fix" }, "readme": "ERROR: No README data found!", - "_id": "maykin-ui@0.0.0", "dependencies": { "@floating-ui/react": "^0.26.6", "@heroicons/react": "^2.1.1",