From ca4cbc963af6f8efc45d58d14fc53c7fca57a081 Mon Sep 17 00:00:00 2001 From: zakher Date: Tue, 4 Jun 2024 00:17:49 +0300 Subject: [PATCH] fix(DataTable): remove extra space when no filters are passed SIKKA-7062[closed] --- apps/docs/CHANGELOG.md | 7 +++++++ apps/docs/package.json | 2 +- packages/components/CHANGELOG.md | 6 ++++++ packages/components/elements/dataTable/DataTable.tsx | 2 +- packages/components/package.json | 2 +- packages/storybook/CHANGELOG.md | 7 +++++++ packages/storybook/package.json | 2 +- 7 files changed, 24 insertions(+), 4 deletions(-) diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md index f9572b36..eac85de2 100644 --- a/apps/docs/CHANGELOG.md +++ b/apps/docs/CHANGELOG.md @@ -1,5 +1,12 @@ # hawa-docs +## 0.0.89 + +### Patch Changes + +- Updated dependencies + - @sikka/hawa@0.42.3 + ## 0.0.88 ### Patch Changes diff --git a/apps/docs/package.json b/apps/docs/package.json index 9bf7fb46..31b1ab89 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -1,6 +1,6 @@ { "name": "hawa-docs", - "version": "0.0.88", + "version": "0.0.89", "private": true, "scripts": { "dev": "next dev -p 3001", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4dad236e..40e0ae6d 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,11 @@ # @sikka/hawa +## 0.42.3 + +### Patch Changes + +- Fix extra space when no filters are provided to `DataTable` + ## 0.42.2 ### Patch Changes diff --git a/packages/components/elements/dataTable/DataTable.tsx b/packages/components/elements/dataTable/DataTable.tsx index d0ef9062..4279ab85 100644 --- a/packages/components/elements/dataTable/DataTable.tsx +++ b/packages/components/elements/dataTable/DataTable.tsx @@ -312,7 +312,7 @@ export const DataTable = ({ )} - {enableFiltering && ( + {enableFiltering && props.filters?.length && (
{props.filters?.map((filter) => { return ( diff --git a/packages/components/package.json b/packages/components/package.json index c1467ba8..e2f40641 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@sikka/hawa", - "version": "0.42.2", + "version": "0.42.3", "description": "Modern UI Kit made with Tailwind", "author": { "name": "Sikka Software", diff --git a/packages/storybook/CHANGELOG.md b/packages/storybook/CHANGELOG.md index 1160f592..2b04cd8c 100644 --- a/packages/storybook/CHANGELOG.md +++ b/packages/storybook/CHANGELOG.md @@ -1,5 +1,12 @@ # hawa-storybook +## 0.26.110 + +### Patch Changes + +- Updated dependencies + - @sikka/hawa@0.42.3 + ## 0.26.109 ### Patch Changes diff --git a/packages/storybook/package.json b/packages/storybook/package.json index 36c5f8c9..7512880d 100644 --- a/packages/storybook/package.json +++ b/packages/storybook/package.json @@ -1,6 +1,6 @@ { "name": "hawa-storybook", - "version": "0.26.109", + "version": "0.26.110", "description": "Modern UI Kit made with Tailwind", "author": { "name": "Sikka Software",