From 12196121f71253376f9abdb55ab4986ee4484ec0 Mon Sep 17 00:00:00 2001 From: TheoryOfNekomata Date: Sat, 25 Jul 2020 15:55:51 +0800 Subject: [PATCH] Update routes, links to package Use human-friendly routes for components. Also, update badges to point to links in the package repository. --- README.md | 4 ++-- lib/components/Button/Button.mdx | 1 + lib/components/Checkbox/Checkbox.mdx | 1 + lib/components/Icon/Icon.mdx | 1 + lib/components/RadioButton/RadioButton.mdx | 1 + lib/components/Select/Select.mdx | 1 + lib/components/Slider/Slider.mdx | 1 + lib/components/TextInput/TextInput.mdx | 1 + 8 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 068d4b2..cbb8208 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ Common front-end components for Web using the [Tesseract design system](https:// Package: -[![@tesseract-design/react-common](https://code.modal.sh/badge?repo=tesseract-design/react-common&type=package&color=C78AB3&kind=name)](https://pack.modal.sh/js/@tesseract-design/react-common) -[![@tesseract-design/react-common](https://code.modal.sh/badge?repo=tesseract-design/react-common&type=package&color=C78AB3&kind=version)](https://pack.modal.sh/js/@tesseract-design/react-common) +[![@tesseract-design/react-common](https://code.modal.sh/badge?repo=tesseract-design/react-common&type=package&color=C78AB3&kind=name)](https://pack.modal.sh/js/-/web/detail/@tesseract-design/react-common) +[![@tesseract-design/react-common](https://code.modal.sh/badge?repo=tesseract-design/react-common&type=package&color=C78AB3&kind=version)](https://pack.modal.sh/js/-/web/detail/@tesseract-design/react-common#versions) Dependencies: diff --git a/lib/components/Button/Button.mdx b/lib/components/Button/Button.mdx index 1c29ae5..a8f620c 100644 --- a/lib/components/Button/Button.mdx +++ b/lib/components/Button/Button.mdx @@ -1,5 +1,6 @@ --- name: Button +route: /components/button menu: Components --- diff --git a/lib/components/Checkbox/Checkbox.mdx b/lib/components/Checkbox/Checkbox.mdx index 1fc4f58..2b1c198 100644 --- a/lib/components/Checkbox/Checkbox.mdx +++ b/lib/components/Checkbox/Checkbox.mdx @@ -1,5 +1,6 @@ --- name: Checkbox +route: /components/checkbox menu: Components --- diff --git a/lib/components/Icon/Icon.mdx b/lib/components/Icon/Icon.mdx index 9c6064d..261ea08 100644 --- a/lib/components/Icon/Icon.mdx +++ b/lib/components/Icon/Icon.mdx @@ -1,5 +1,6 @@ --- name: Icon +route: /components/icon menu: Components --- diff --git a/lib/components/RadioButton/RadioButton.mdx b/lib/components/RadioButton/RadioButton.mdx index 5dde51d..cfa394a 100644 --- a/lib/components/RadioButton/RadioButton.mdx +++ b/lib/components/RadioButton/RadioButton.mdx @@ -1,5 +1,6 @@ --- name: Radio Button +route: /components/radio-button menu: Components --- diff --git a/lib/components/Select/Select.mdx b/lib/components/Select/Select.mdx index 822df08..bbf7473 100644 --- a/lib/components/Select/Select.mdx +++ b/lib/components/Select/Select.mdx @@ -1,5 +1,6 @@ --- name: Select +route: /components/select menu: Components --- diff --git a/lib/components/Slider/Slider.mdx b/lib/components/Slider/Slider.mdx index df68d2e..01150fe 100644 --- a/lib/components/Slider/Slider.mdx +++ b/lib/components/Slider/Slider.mdx @@ -1,5 +1,6 @@ --- name: Slider +route: /components/slider menu: Components --- diff --git a/lib/components/TextInput/TextInput.mdx b/lib/components/TextInput/TextInput.mdx index b34db7c..def381c 100644 --- a/lib/components/TextInput/TextInput.mdx +++ b/lib/components/TextInput/TextInput.mdx @@ -1,5 +1,6 @@ --- name: Text Input +route: /components/text-input menu: Components ---