{ heading && (
{ description }
From d14d267e96cc3fc6cd9fbd8b1462ec31950eb54f Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Tue, 17 Dec 2024 13:10:36 +0600
Subject: [PATCH 12/18] Removed backdrop blur
---
src/components/dialog/dialog.tsx | 2 +-
src/components/drawer/drawer-backdrop.tsx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/components/dialog/dialog.tsx b/src/components/dialog/dialog.tsx
index d16ec404..5a193e3b 100644
--- a/src/components/dialog/dialog.tsx
+++ b/src/components/dialog/dialog.tsx
@@ -261,7 +261,7 @@ export const DialogBackdrop = ( {
{ open && (
{
{ open && (
Date: Tue, 17 Dec 2024 13:22:14 +0600
Subject: [PATCH 13/18] fix: Error
---
.../admin-settings-Spectra.stories.jsx | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/templates/admin-settings-Spectra/admin-settings-Spectra.stories.jsx b/src/templates/admin-settings-Spectra/admin-settings-Spectra.stories.jsx
index 19f4f61a..b9d628f5 100644
--- a/src/templates/admin-settings-Spectra/admin-settings-Spectra.stories.jsx
+++ b/src/templates/admin-settings-Spectra/admin-settings-Spectra.stories.jsx
@@ -452,7 +452,7 @@ const Template = ( args ) => {
@@ -485,7 +485,7 @@ const Template = ( args ) => {
@@ -518,7 +518,7 @@ const Template = ( args ) => {
@@ -552,7 +552,7 @@ const Template = ( args ) => {
@@ -585,7 +585,7 @@ const Template = ( args ) => {
From e8ba99a659cd8188b54acede913df915ab477753 Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Tue, 17 Dec 2024 13:40:21 +0600
Subject: [PATCH 14/18] Added backward compatibility support
---
src/components/switch/switch.tsx | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/components/switch/switch.tsx b/src/components/switch/switch.tsx
index 8261c3e7..98cf1524 100644
--- a/src/components/switch/switch.tsx
+++ b/src/components/switch/switch.tsx
@@ -145,6 +145,9 @@ export const SwitchComponent = (
}: SwitchProps,
ref: React.ForwardedRef
) => {
+ // For backwards compatibility.
+ const normalSize = ( size as 'sm' | 'md' | 'lg' ) === 'lg' ? 'md' : size;
+
const isControlled = useMemo( () => typeof value !== 'undefined', [ value ] );
const switchId = useMemo( () => ( id ? id : `switch-${ nanoid() }` ), [] );
const [ checked, setChecked ] = useState( defaultValue );
@@ -201,12 +204,12 @@ export const SwitchComponent = (
label={ label }
switchId={ switchId }
disabled={ disabled }
- size={ size }
+ size={ normalSize }
>
@@ -229,7 +232,7 @@ export const SwitchComponent = (
htmlFor={ switchId }
className={ cn(
"bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 left-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 before:left-2/4 before:-translate-y-2/4 before:-translate-x-2/4",
- sizeClassNames[ size ].toggleDial,
+ sizeClassNames[ normalSize ].toggleDial,
colorClassNames[ color ].toggleDial,
disabled && disabledClassNames.toggleDial
) }
From 0f574376a820609c6232dbbc4f9aae7d3cbca964 Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Tue, 17 Dec 2024 14:03:01 +0600
Subject: [PATCH 15/18] Updated gap between switch label and description
---
src/components/switch/switch.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/components/switch/switch.tsx b/src/components/switch/switch.tsx
index 98cf1524..f969adff 100644
--- a/src/components/switch/switch.tsx
+++ b/src/components/switch/switch.tsx
@@ -68,6 +68,10 @@ export const SwitchLabel = ( {
sm: 'text-xs leading-4 font-normal',
md: 'text-sm leading-5 font-normal',
};
+ const gapClassNames = {
+ sm: 'space-y-0.5',
+ md: 'space-y-1',
+ };
const isLabelAComponent = isValidElement( label );
if ( isLabelAComponent ) {
return (
@@ -82,7 +86,7 @@ export const SwitchLabel = ( {
const renderLabel = () => {
const { heading = '', description = '' } = label || {};
return (
-
+
{ heading && (
Date: Tue, 17 Dec 2024 16:27:04 +0600
Subject: [PATCH 16/18] Version bump and update change log
---
README.md | 4 ++--
changelog.txt | 10 ++++++++++
package.json | 2 +-
version.json | 2 +-
4 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 00889988..33449694 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ Using Force UI as a dependency in package.json -
```json
"dependencies": {
- "@bsf/force-ui": "git+https://github.com/brainstormforce/force-ui#1.3.0"
+ "@bsf/force-ui": "git+https://github.com/brainstormforce/force-ui#1.3.1"
}
```
@@ -28,7 +28,7 @@ npm install
Or you can directly run the following command to install the package -
```bash
-npm i -S @bsf/force-ui@git+https://github.com/brainstormforce/force-ui.git#1.3.0
+npm i -S @bsf/force-ui@git+https://github.com/brainstormforce/force-ui.git#1.3.1
```
diff --git a/changelog.txt b/changelog.txt
index b6356c0b..b334aecc 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,3 +1,13 @@
+Version 1.3.1 - 17th December, 2024
+Fixed - The the underline issue to enhance visual consistency.
+Fixed - Select component issue, where a check mark was displaying even when no item was selected.
+Fixed - Switch component design mismatch.
+Fixed - Text, icon size, alignment, and color inconsistencies to ensure uniform appearance of the Date Picker.
+Fixed - The Input ref not pointing to the input field.
+Fixed - Menu component icon size and alignment for better visual clarity.
+Fixed - The sidebar height was not overridable.
+Improvement - Removed backdrop blur to improve performance and visual clarity.
+
Version 1.3.0 - 16th December, 2024
- New - Table component.
- Fixed - Asterisk missing on required input label.
diff --git a/package.json b/package.json
index a0f65682..e099d35f 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "@bsf/force-ui",
- "version": "1.3.0",
+ "version": "1.3.1",
"description": "Library of components for the BSF project",
"main": "./dist/force-ui.js",
"module": "./dist/force-ui.js",
diff --git a/version.json b/version.json
index 675a1b15..f89dc473 100644
--- a/version.json
+++ b/version.json
@@ -1,3 +1,3 @@
{
- "force-ui": "1.3.0"
+ "force-ui": "1.3.1"
}
From 856ba00a33aec1f1a5450a2d0b1161519857c94f Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Tue, 17 Dec 2024 16:31:42 +0600
Subject: [PATCH 17/18] Update changelog.txt
---
changelog.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/changelog.txt b/changelog.txt
index b334aecc..ed4cbdb9 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,5 +1,5 @@
Version 1.3.1 - 17th December, 2024
-Fixed - The the underline issue to enhance visual consistency.
+Fixed - The underline issue to enhance visual consistency.
Fixed - Select component issue, where a check mark was displaying even when no item was selected.
Fixed - Switch component design mismatch.
Fixed - Text, icon size, alignment, and color inconsistencies to ensure uniform appearance of the Date Picker.
From 4851bbca9fa6baac43b111c61582f7b4ee742527 Mon Sep 17 00:00:00 2001
From: Jaied Al Sabid <87969327+jaieds@users.noreply.github.com>
Date: Tue, 17 Dec 2024 16:36:28 +0600
Subject: [PATCH 18/18] Update changelog.txt
---
changelog.txt | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/changelog.txt b/changelog.txt
index ed4cbdb9..7f13561f 100644
--- a/changelog.txt
+++ b/changelog.txt
@@ -1,12 +1,12 @@
Version 1.3.1 - 17th December, 2024
Fixed - The underline issue to enhance visual consistency.
-Fixed - Select component issue, where a check mark was displaying even when no item was selected.
-Fixed - Switch component design mismatch.
-Fixed - Text, icon size, alignment, and color inconsistencies to ensure uniform appearance of the Date Picker.
-Fixed - The Input ref not pointing to the input field.
-Fixed - Menu component icon size and alignment for better visual clarity.
-Fixed - The sidebar height was not overridable.
-Improvement - Removed backdrop blur to improve performance and visual clarity.
+Fixed - Issue with the Select component where a check mark was displayed even when no item was selected.
+Fixed - Design mismatch in the Switch component.
+Fixed - Text, icon size, alignment, and color inconsistencies in the Date Picker to ensure a uniform appearance.
+Fixed - Input ref not pointing to the input field.
+Fixed - Icon size and alignment issues in the Menu component for better visual clarity.
+Fixed - Sidebar height not being overridable.
+Improvement - Removed backdrop blur to enhance performance and visual clarity.
Version 1.3.0 - 16th December, 2024
- New - Table component.