From 6da1a0361ec916b6652865af7bc1bdf81ae5d5a6 Mon Sep 17 00:00:00 2001 From: AssisrMatheus Date: Wed, 12 Apr 2023 13:20:50 -0400 Subject: [PATCH 1/3] fix: makes all button type button by default --- src/components/Drawer/index.tsx | 4 ++-- src/components/EventCard/index.tsx | 1 + src/components/HorizontalResizeablePanel/index.tsx | 2 ++ src/components/Modal/index.tsx | 2 +- src/components/ModuleCard/index.tsx | 1 + src/components/ProgramCard/index.tsx | 1 + src/components/WYSIWYGInput/Toolbar/Section/Item/index.tsx | 1 + 7 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/components/Drawer/index.tsx b/src/components/Drawer/index.tsx index f04d360..b136fea 100644 --- a/src/components/Drawer/index.tsx +++ b/src/components/Drawer/index.tsx @@ -204,12 +204,12 @@ export const Drawer: React.FC> = ({
{/* If there's the back button, display it */} {onBack && ( - )} - diff --git a/src/components/EventCard/index.tsx b/src/components/EventCard/index.tsx index 56ef2e2..89b9a5a 100644 --- a/src/components/EventCard/index.tsx +++ b/src/components/EventCard/index.tsx @@ -135,6 +135,7 @@ export const EventCard: React.FC = ({ />
)} diff --git a/src/components/ModuleCard/index.tsx b/src/components/ModuleCard/index.tsx index 16b061b..52dfa3f 100644 --- a/src/components/ModuleCard/index.tsx +++ b/src/components/ModuleCard/index.tsx @@ -114,6 +114,7 @@ export const ModuleCard: React.FC = ({
{content}
+ ); + })} +
+ ); +}; From 6f96d14bdd2f2d1d3cfea728bc971b3931d3e5ce Mon Sep 17 00:00:00 2001 From: AssisrMatheus Date: Wed, 12 Apr 2023 13:56:06 -0400 Subject: [PATCH 3/3] build: version 10.0.0 --- CHANGELOG.md | 12 ++++++++++-- package.json | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f823d03..b79bd63 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,10 +23,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Added `SelectStack` component - ### Fixed +## [10.0.0] 2023-04-12 + +### **Breaking changes** + +- Fix: made sure all buttons are of `type=button` unless stated otherwise. To fix issues where buttons would accidentally submit forms. + +### Added + +- Added `SelectStack` component + ## [9.5.0] 2023-04-12 ### Added diff --git a/package.json b/package.json index fdc0d11..0a94c28 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@perimetre/ui", "description": "A component library made by @perimetre", - "version": "9.5.0", + "version": "10.0.0", "repository": { "type": "git", "url": "git+https://github.com/perimetre/ui.git"