fix: issue on RTL support checkbox component (#2466)

* fix: issue on RTL support checkbox component

* fix: delete extra file

* fix: adjust the changeset for rtl checkbox

* fix: convert changeset rtl checkbox to ptach
This commit is contained in:
Mohammad Reza Badri 2024-03-08 17:46:18 +03:30 committed by GitHub
parent a686262009
commit e4b3c7d1a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"@nextui-org/checkbox": patch
---
Add RTL support to the checkbox component

View File

@ -78,7 +78,7 @@ const checkbox = tv({
size: {
sm: {
wrapper: [
"w-4 h-4 mr-2",
"w-4 h-4 mr-2 rtl:ml-2 rtl:mr-[unset]",
"rounded-[calc(theme(borderRadius.medium)*0.5)]",
"before:rounded-[calc(theme(borderRadius.medium)*0.5)]",
"after:rounded-[calc(theme(borderRadius.medium)*0.5)]",
@ -88,7 +88,7 @@ const checkbox = tv({
},
md: {
wrapper: [
"w-5 h-5 mr-2",
"w-5 h-5 mr-2 rtl:ml-2 rtl:mr-[unset]",
"rounded-[calc(theme(borderRadius.medium)*0.6)]",
"before:rounded-[calc(theme(borderRadius.medium)*0.6)]",
"after:rounded-[calc(theme(borderRadius.medium)*0.6)]",
@ -98,7 +98,7 @@ const checkbox = tv({
},
lg: {
wrapper: [
"w-6 h-6 mr-2",
"w-6 h-6 mr-2 rtl:ml-2 rtl:mr-[unset]",
"rounded-[calc(theme(borderRadius.medium)*0.7)]",
"before:rounded-[calc(theme(borderRadius.medium)*0.7)]",
"after:rounded-[calc(theme(borderRadius.medium)*0.7)]",