From 6ee52d7beb72f4a162043d90f97354fa4911afa7 Mon Sep 17 00:00:00 2001 From: Alessandro Macanha Date: Mon, 21 Jun 2021 13:46:21 -0300 Subject: [PATCH 1/2] fix: fixed bug with height on WYSIWYG component and added config for minHeight at default-present --- CHANGELOG.md | 4 ++++ src/components/WYSIWYGInput/index.tsx | 6 +++--- src/presets/default-preset.js | 9 +++++++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 849f5b0..24dc811 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,8 +23,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +- Added minHeight at default-present with default spacing. + ### Fixed +- Fixed a bug with height on the `size` property for WYSIWYG input component. + ## [3.0.5] - 2021-06-21 ### Changes diff --git a/src/components/WYSIWYGInput/index.tsx b/src/components/WYSIWYGInput/index.tsx index dd9102e..bd04dac 100644 --- a/src/components/WYSIWYGInput/index.tsx +++ b/src/components/WYSIWYGInput/index.tsx @@ -31,9 +31,9 @@ const styleMap: DraftStyleMap = { }; const sizeClassnameMap = { - small: 'h-44', - medium: 'h-56', - large: 'h-96' + small: 'min-h-44', + medium: 'min-h-56', + large: 'min-h-96' }; export type WYSIWYGInputRef = { diff --git a/src/presets/default-preset.js b/src/presets/default-preset.js index 76171a4..fc5700b 100644 --- a/src/presets/default-preset.js +++ b/src/presets/default-preset.js @@ -99,6 +99,15 @@ module.exports = { max: 'max-content', initial: 'initial' }), + /** + * Returns the minHeight values + * + * @param theme the provided tailwind theme + */ + minHeight: (theme) => ({ + auto: 'auto', + ...theme('spacing') + }), height: { '5/12vh': '41.666667vh' }, From 4d9a99b01797c0643bdb57036ea26bf9418420d3 Mon Sep 17 00:00:00 2001 From: Alessandro Macanha Date: Mon, 21 Jun 2021 13:49:30 -0300 Subject: [PATCH 2/2] build: bumping version: 3.0.6 --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 24dc811..6fda219 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added +### Fixed + +## [3.0.6] - 2021-06-21 + +### Changes + +### Added + - Added minHeight at default-present with default spacing. ### Fixed diff --git a/package.json b/package.json index 3ba2d4d..03d8f08 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@perimetre/ui", "description": "A component library made by @perimetre", - "version": "3.0.5", + "version": "3.0.6", "repository": { "type": "git", "url": "git+https://github.com/perimetre/ui.git"